16 comments

  • rdtsc2 hours ago
    Some of it sounds like it reinvented Erlang supervision trees <a href="https:&#x2F;&#x2F;learnyousomeerlang.com&#x2F;supervisors" rel="nofollow">https:&#x2F;&#x2F;learnyousomeerlang.com&#x2F;supervisors</a>. As a joke there we’re calling gen_severs “nanoservices”. Granted, that was mostly when microservices were the hot new thing.
    • pyinstallwoes5 minutes ago
      Immediately my first thought as well. I still keep coming back to Erlang&#x2F;Elixir&#x2F;OTP as the best possible choice all things considered. I should use it more.
  • physix8 hours ago
    Nobody uses Amex for payments, so the system isn&#x27;t ever under high load.<p>Just kidding!<p>I find the idea quite good, and have to assume that the amount of payment fails they experience due to partitions&#x2F;outages isn&#x27;t very high and that the post-payment reconciliation and reclamation process gives them the liberty to rank availability a bit higher than correctness.<p>One thing that looked a bit shaky was the interplay between the global transaction router&#x27;s state of knowing which cells can handle a particular payment and the asynchronous distribution of the &quot;failover data&quot;, which I presume it needs to know to route correctly. To me that seems to create a window where it might route to the wrong cell due to an outdated routing state.<p>It also doesn&#x27;t go into the HA setup of the global transaction router itself.<p>But still, I kind of like the design.
    • mixdup7 hours ago
      &gt;To me that seems to create a window where it might route to the wrong cell due to an outdated routing state.<p>But if the router sends to the wrong cell the cell will either send it back to be rerouted or it will fail and the router will try again (or report back the failure so upstream can try again I assume)
      • physix5 hours ago
        That would be the good case.<p>But what if the cell doesn&#x27;t know that, and it&#x27;s holding, for example, a stale account number?
        • inigyou4 hours ago
          Generally with a credit card, or many banking systems more generally, because they predate computers, it&#x27;s possible that a charge might be accepted even if there&#x27;s no knowledge whether the money is in the account. As long as the person who was supposed to have paid is identifiable, the money is taken from their account anyway in the end, and if they don&#x27;t have it, they get sued and their wages garnished, and if they also don&#x27;t have wages, that&#x27;s a small enough percentage of people that it&#x27;s part of the cost of doing business.
  • Insimwytim5 hours ago
    Whole lot of nothing.<p>This isn&#x27;t about payment technologies, it&#x27;s not about isolating transactions, it&#x27;s about scaling the middle layer. What&#x27;s worse it&#x27;s not even explained what middle layer does.<p>No info on how routing works, no info on data synchronization.<p>Folks just learning Kubernetes and write extremely abstract stuff.
    • jijji2 hours ago
      I agree, confusing and it seems like they are using the coined word &quot;cell&quot; to describe &quot;container&quot;, but they really should say that instead of making up new words.
      • genxy41 minutes ago
        Making up new words is how you get to take ownership of existing concepts. This gets you promoted.
  • mkhalil5 hours ago
    microservices &#x2F; clusters &#x2F; zones - really all of these are other &quot;cell-based&quot; architectures as well. there is absolutely no written rule that a microservice was just an API or a singular service, it basically can be a independent instance that is testable&#x2F;usable&#x2F;gives value on itself.<p>that said: still a nice write up, learning about some of the architectural choices that AMEX makes is definitely insightful (and relavent&#x2F;useful to what i am working on right now as well!)
  • nightshift17 hours ago
    All i can see is a giant single point of failure called the Global Transaction Router.
    • otterley6 hours ago
      GLBs aren’t SPOFs. They are typically deployed around the world redundantly, often using Anycast IPs or using DNS geographic and failover records, and are stateless. Think AWS Global Accelerator and Route 53 as an example. The architecture diagram is a high level simplification.
      • orochimaaru2 hours ago
        I don&#x27;t think the global transaction router is a GLB. Having dabbled in this for high traffic telemetry gathering infrastructure, I will hazard a guess and say the &quot;router&quot; isn&#x27;t a GLB.<p>The router needs to be shard-aware. It needs to know what data is where based on the request coming in so that it can route accurately. A GLB is DNS. It cannot be shard-aware because all it knows is the FQDN being resolved.<p>It can be a &quot;router&quot; if all the router needs to know is to resolve to the nearest data center or the nearest CDN. But at that point I have to ask the question - why does one need a cell-based architecture and can&#x27;t it just be geo-redundant active-active failover across regions.<p>In any sense, the architecture itself isn&#x27;t novel or new. It&#x27;s documented here: <a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;wellarchitected&#x2F;latest&#x2F;reducing-scope-of-impact-with-cell-based-architecture&#x2F;what-is-a-cell-based-architecture.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;wellarchitected&#x2F;latest&#x2F;reducing-...</a>. It&#x27;s the go to model if you&#x27;re running a cloud.
        • otterley28 minutes ago
          Active&#x2F;active without sharding is not a horizontal scaling model, and the blast radius of a fault is wide.<p>One can have GLBs that do routing. So long as the tenant-to-cell routing tables are consistent, it works fine. And those mappings tend not to change frequently.
      • wbl5 hours ago
        GLBs absolutely can be SPOF for certain kind of administrative mistakes.
        • otterley27 minutes ago
          If you’re counting administrative mistakes (human error), anything can fail. Let’s not shift the goalposts.
        • lokar4 hours ago
          That depends on your change control process
      • themafia4 hours ago
        A large portion of DNS is outside of your control. You&#x27;re relying on at least two third parties you have indirect relationships with in order to work. If you&#x27;re outside of the standard TLDs you&#x27;ve got additional social factors that can control your resolution.<p>Granted. It works really well in practice. It should be noted we haven&#x27;t actually had the world war the Internet was designed to survive. So we&#x27;re not entirely clear on the semantics of operations in unusual and unexpected configurations. I would expect DNS to be the first shoe to drop there.
    • manoDev3 hours ago
      Isn&#x27;t it reassuring the entire CC business hinges on a single proprietary appliance inside a cage at some DC? :)
  • inigyou6 hours ago
    403 Forbidden<p>Because of the title I was expecting to read about doing payments with a distributed network, like a terrorist cell network, or something like Hawala. Not (as I infer from other comments) Amex using multiple independent systems.
  • neerajsi8 hours ago
    I wonder how they ensure durability. Is it possible that a cell going down would roll back a payment after it has occurred. Or do they depend on a non cell database?
    • subtlejellyfish8 hours ago
      I would assume nothing related to a given transaction crosses the cell boundary.<p>We use a cellular architecture to help constrain the blast radius of a modular monolith. Each one of our customers lives in exactly 1 cell. Any kind of cross-customer BI&#x2F;reporting happens through a data warehouse.
  • kev0099 hours ago
    There things are always a clusterfsck compared to the mainframe deployments.
    • vb-84487 hours ago
      Ahahha so true man!<p>Some CICS regions, a DB2 and a couple of VSAMs and that&#x27;s it.
  • jeremycarter8 hours ago
    As Reddit already pointed out, this is nothing novel.
    • christophilus7 hours ago
      “They reinvented Erlang OTP.” - Reddit
      • tomjakubowski5 hours ago
        Don&#x27;t know if Joe Armstrong ever said anything like it, but I would propose naming an Erlang&#x2F;OTP analogue of Greenspun&#x27;s tenth rule (the one about C projects containing ad-hoc, buggy implementations of Lisp) for him.
        • cyberpunk1 hour ago
          There is Virdings Rule:<p>Any sufficiently complicated concurrent program in another language contains an ad hoc informally-specified bug-ridden slow implementation of half of Erlang.
      • themafia4 hours ago
        To be fair Elixir shows you can just use the BEAM if you want. If you need these semantics at this level there&#x27;s very few reasons not to go this route.
    • therealdrag05 hours ago
      Still nice to have learning resources like this pass through HN even if it’s not novel.
  • stevefan19997 hours ago
    Backing up would be hell
    • cyberpunk1 hour ago
      Backups in such a system are quite pointless; if losing 10 seconds of data means you lost 4000 transactions then periodic backups are invalid if not instantly than close to instantly.<p>The system I work on has such a property and the only real infra style approach is sync replication before responding to a caller and a delayed replica for delete&#x2F;drop protections (say with a 2hr or more window).<p>Should also defend for this in your code (be able to reply from your initiation systems also etc)
    • simmonmt7 hours ago
      Maybe? If you assume a cell can just disappear at a moment&#x27;s notice, then I&#x27;m guessing you don&#x27;t even try backing it up. Whatever goes into and out of the cell (request logs and results) gets backed up, and no doubt that&#x27;s more complicated than a monolithic system, but it may not be so bad assuming the replay systems and global transaction router do their thing?
  • charcircuit4 hours ago
    This service oriented architecture except more expensive and complicated.
  • llmslave8 hours ago
    American Express tech is some of the worst in the world among big companies. All of the value in the company is just in the branding. They put some work into the mobile app and the website, but other than that, its a facade.
    • mcintyre19947 hours ago
      A few years ago someone kept signing up for loads of bank accounts&#x2F;credit cards in my name, with my address. I’m not sure what the point of it was. But while everyone else happily sent cards and stacks of welcome paperwork to me, Amex were the only one that contacted me and told me they’d detected something weird in the signup. They gave me some helpful advice to resolve that situation too.
      • buerkle6 hours ago
        I froze my credit with the 3 big credit agencies in the US years ago when someone attempted to open multiple Dell and other company accounts in my name. Easy enough to unfreeze for a temporary period of time when I need it.
    • jmpman7 hours ago
      Having worked at Amex and other huge banks, let me assure you that there&#x27;s much worse than Amex. Amex&#x27;s Fraud analytics team was good. Risk was good. Ben&#x27;s team is good.
    • yndoendo3 hours ago
      BoA reauthorized an auto-payment card even with the card being expiration and uncorrected security code. I would call that authorized fraud by Bank of American.<p>This is why I find it best to declare a card stolen right before expiration or after.
    • tracerbulletx6 hours ago
      What are you basing that statement on? It has not been by personal experience.
  • great_wubwub7 hours ago
    Makes me a little nervous that a web page about resilience is failing to connect.
  • badlibrarian7 hours ago
    Ah yes, the financial services company that runs a travel agency, allows me to book my hotel and rental car weeks in advance, registers a hold for incidentals for both the hotel and car when I check in, then blocks the card when I try to buy dinner that night in that same hotel due to fraud detection.<p>Last week it required me to take pictures of my face from multiple angles to regain membership privileges. I suspect this may be part Palantir data collection and part Peter Thiel dating service.
  • toast03 days ago
    They run their payment systems on ps3??? Somebody bought into the marketting a bit much.
  • rekttrader9 hours ago
    So you’re telling me these cells operate independently like distributed Ethereum nodes and L2s… got it.
    • inigyou6 hours ago
      Ethereum nodes are not independent, they are as interdependent as it&#x27;s possible to be.
      • shwaj3 hours ago
        It&#x27;s becoming a reliable heuristic that when somebody says &quot;... got it&quot;, they probably didn&#x27;t get it.