Hacker Newsnew | past | comments | ask | show | jobs | submit | stmw's commentslogin

Despite all of the snark here, in my experience Salesforce SRE team is quite competent. The engineering challenges of running a large PaaS - not just with own apps, but with millions of customer-written apps running on it - are quite interesting, and sadly things happen. The status page makes sense to actual customers, it's the particular "pods" where a given service runs.

Hacker News is much easier to read when you realize that 95% of people have never worked on a "high" (maybe we could say >1B requests per day as a starting point) scale distributed service and think it's trivial to run one with more than 2 nines. You see comments all the time here mentioning that their own desktop at home is achieving more than that which belies deep misunderstanding of how systems are measured. Or that unofficial github status page repeatedly posted here that counts all github services together into one number.

The other thing people miss is change velocity. NTP server doesn't change much. Salesforce teams are under enormous pressure to constantly deliver new features and ship changes every day. 99.95+% with constant change, millions of customers, 1e10-11 requests a day is challenging.

While not a home-run server, the NTP system is a distributed service that receives 100 billion to trillions of requests per day, and it's running pretty smoothly - it's never gone down completely since it started in 1985. It's also very simple. The reason it has so many 9's uptime is because it is simple. Given a low amount of complexity, it's not unreasonable to think that an individual could run a >1B requests per day service.

Salesforce is not simple. It's wildly, overly complex. It's amazing it has any 9's at all and not 8's or 7's. Salesforce offers three 9's, which allows for 43 minutes downtime per month. The current outage is at 8 hours (and counting) so Salesforce is now at 98.9% uptime for the month - there's an "8" in there now. Not good, but considering the complexity of Salesforce, it's still kind of amazing.


>Salesforce is not simple. It's wildly, overly complex.

It turns out business environments are wildly overly complex.


It's the scaling nature of enterprise software. If you have a mature B2C app, you have millions of users. What each user wants isn't so important, so it's more of a take it or leave it experience. If you have an enterprise app, one big company can and does push you around to get their features in. And as you grow, you get a few hundred big companies that push you around. The result is this huge mess of features, and now you have to maintain this mess.

I remember Cisco before iOS used to have hundreds of branches for their router, one branch for each major customer that was demanding specific features. It was unmanageable, but that's what you needed to do to win those "enterprise customers".

It also turns out customers aren't very good at articulating their needs and putting them into a cohesive vision of the product. But they sure have specific demands to get stuff in. I'm not blaming the customer, this is just how this world works -- All of the "enterprise software" apps are extremely complex with hidden knobs and weird behavior that was pushed in by a customer twenty years ago all over the place.


> I remember Cisco before iOS used to have hundreds of branches for their router, one branch for each major customer that was demanding specific features. It was unmanageable

Ouch. I heard of a company in my home town (small B2B service provider) doing something similar - they paid well but I didn't think it was worth it.


I think it’s like advertising - 50% of my code is wildly over complicated - I just don’t know which 50%

But the GP is essentially correct - there is a 2% of salesforce that could be built run and keep 80% of salesforce users happy. Except that you could not charge enough to be able to advertise on F1 cars and take SVPs out to dinner.

So you could not actually make 80% of them happy - they would ever buy it.


> I just don’t know which 50%

Yes, you largely do - they’re the commits that get rushed to, and through.

This take that showstopping technical debt is unavoidable is very new, and will age like milk.


> showstopping technical debt is unavoidable is very new

No it's not. The push and pull between shipping and paying down technical debt is as old as there's been software to sell. Sales has been selling features that don't exist quite yet ever since they've been talking to customers, and engineering has been pushing back on implementing them yesterday since there's been features to implement. Showstopping technical debt is merely a side effect of who wins that argument in a given org.


Yes.

My point is the technical debt is stopping the show way more often.

Not “this never existed before selling”,

but “we never had the team in place who could do this right in the first place”.

You can quibble about who is responsible, but the fact remains.


> which belies deep misunderstanding

I think you are missing the point. When I state my Exchange server is more reliable than Exchange Online, I don't think I'm a better engineer. I recognize Microsoft has harder problems to solve than I do. I think building overengineered, oversized SaaS environments is introducing extreme risk. It's an inherent flaw of the current approach.

Smaller is, in fact, better, because it's easier to operate reliably.


Is it? When your internet is out for five days because your ISP takes a few days to get to you, do you acknowledge that you're now at 98.5% availability for the year, far worse than any SaaS email service?

I think people forget that those large environments are there for a reason. To make sure the service stays up in the face of problems outside your own control.


In my entire adult lifetime (mid 40s), my ISP has never been out for five days. Compare to Github, Microsoft, Salesforce, and AWS outages that are always occurring in some fashion. Reddit is down constantly in various ways and still continues to operate as a business, public no less, so I disagree about the need to chase five nines and broadly speaking, large distributed systems that are potentially unnecessary for the use case and target outcome.

https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...


Consider yourself lucky that you’ve never been the victim of a fiber cut. But what about if the power to your house goes out? Or what if your server blows the power supply?

My entire point is that you have no redundancy in your system and you also aren’t big enough to have any pull with the vendors who can fix these types of outages so you’re basically at the mercy of your providers with no recourse.

That’s why these systems are built the way they are.

And generally four nines is considered the gold standard these days. I can tell you for sure that both Netflix and Ebay would lose money anytime they drop below four nines because I have at some point been responsible for both. You’re correct that Reddit has a lot more leeway and outage time before they start losing money but not that much leeway.


> That’s why these systems are built the way they are.

Built how? Because I can state with confidence that I have cleaned up a ton of failed upgrades/zombie terraform deploys of these serverless kubernetes wonders that followed every best practice under the sun, and these things are not really considered even moderately reliable (as designed by imperfect mortals under real world conditions), meanwhile professionally, people who stand to lose a lot of money should their systems go down generally operate systems whose architectures were designed decades ago, are generally horizontally scaled monoliths, and are extremely conservative in software choice.

Also downtime often is no biggie, as long as it's planned and or don't lose (too much) customer critical data.

Like nodobody cares if your test db cluster goes down for the weekend. We even shut down our db instances to save money.


None of that is an argument against small being more reliable. Rather it's an argument that the smaller you are the more important being distributed becomes when managing mundane day to day failures.

Even if a solar flare takes out an entire continent or two I think it's safe to say that the bittorrent network will still be running in some form. Can you be so certain about any given SaaS product?


I've contributed to building out data centers, as well as managed colos for others, primarily in downtown Chicago at Level3 and at 350 E Cermak. I am familiar with architecture required for reliability and diversity, from power and fiber in all the way up the stack to the Kubernetes cluster and software defined networking. If you participate in the capital markets, your data traverses systems I've participated in designing and implementing. There is a time and place for complexity (in this context, large/global distributed systems), but too often, complexity exists where it need not (imho).

"What are you optimizing for?" is always an important question, as is "The Five Whys."


I mean, if you really need redundancy, isn’t a second instance on a VPS somewhere that you manually switch over to, enough?

Over multiple ISPs, so far internet outages for more then a few minutes is very rare (though the few minutes would make me not want to host something requiring high availability; and a cut cable is really annoying because there simply is no quick fix), power outages even rares, I experienced 3 in 40 years, and the longest was 6 hours.


Generally, no.

Ignoring for now how you are synchronizing the database and filesystem, and how doing so may well result in your duplicate experiencing the same failure as the original, you can maybe recover from a small class of availability issues that could knock you out of an SLA.

But that assumes you can get online and can fully orchestrate the transition within less than 53 minutes of it starting. Including the time you took to become aware of it. And including the time to diagnose and decide that a switchover would resolve the problem. Including the time it takes for DNS caches to expire and point to the new host. Including the DNS caches which may ignore your TTL. And including all these things again when you switch back.

And assuming, of course, that it doesn't happen again for a whole year.


I've dealt with a fiber cut, it wasn't nearly that bad. Fiber cuts impacting my SaaS providers were worse because there was nothing I could do about it.

Curious, what AWS outage has affected you for days?

(I hope you'll agree that the middle east outage is a true outlier)


Indeed, the scale Anon1096 refers to wrt distributed systems is anti pattern. It is designed to vacuum up revenue and create enterprise value with scale, not to create resiliency for customers (although resiliency might be a byproduct of a well architected and operated distributed system at scale).

"Simplicity is the ultimate sophistication." -- Da Vinci


Hidden in this discussion around self-hosting reliability are other options as well.

Depending on your time and appetite for tinkering with all of this, it's not hard to imagine a home setup that fails over to a cheap Hetzner or DO VM. A manual failover at the DNS level isn't overly complex, and could be scripted.

Keeping a database in sync between home and the instance might be simple or more complex depending on needs, but would it really be that hard to have Claude help you setup a replicating Postgres server? If your database (or data files) are 1 gigabyte and don't update that often... maybe just rsync it every night or something

There's a thread you and others are pulling on here, and we need to pull it. Hosting doesn't have to be the domain of the big vendors anymore.


That was my intent, pull the thread.

Well ackchually.. I get that large scale systems pose their own challenges on their own, but it also matters what's the smallest isolable unit.

What I mean by this is a CDN consists of nodes that are horizontally replicable and don't really talk to each other, and thus are easy to run even at scale.

In contrast, something like a bank or social media isn't really reducible - every user needs to be able to interact with every other user in a consistent manner.

So running a midsize bank's backend which processes 10m transactions per day, might be as if not more complex (all consistent, repeatable, and must never fail), that having a product which is a 10-10k org's IT infra replicated a thousand times.

And yes, lots of people have worked at banks and other fintech companies of this scale, including me.

I am not an expert, as I never worked on the 'core' systems but I know folks who did, and everyone told me there's an arcane database monolith that sits at the heart of these, very expensive and exotic big box SW & HW (at least for us unwashed rubes used to EC2 instances)


> What I mean by this is a CDN consists of nodes that are horizontally replicable and don't really talk to each other, and thus are easy to run even at scale.

This is only true if you exclude problems like “finding a CDN node from the device,” “managing congestion,” etc. as part of the problem statement


> What I mean by this is a CDN consists of nodes that are horizontally replicable and don't really talk to each other, and thus are easy to run even at scale.

They do though! They mostly try to avoid it since hitting the network to serve any kind of latency would unacceptably increase latency, but you wildly underestimated the amount of complexity there is to running a CDN.


I probably underestimated the complexity and I didn't mean to knock on CDNs - I just wanted to say that not all distributed systems have equal complexity, and some require essentially almost serializable transactions, while others are fine with small channels of eventual consistency

the complexity is in different places. For these systems the sheer scale of throughput makes reasoning about them challenging.

the OP mentioned 1B requests/day, where there are systems handling 1B requests a second.


As a previous SRE at Cloudflare, I'll never shit-talk fellow SREs at big companies.

The level of scale and complexity a big tech SRE has to deal with on a constant day-to-day is a very imbalanced proposition. A lot of people, in my experience, are not fully comprehending.

You have to be a jack-of-all-trades and a master of all.


Yes, the thing Salesforce are good at, and is little understood here, is that they've kept their platform online for 27 years so far. Its constantly evolving, three upgrades per year, but changes that require customers to change their customisations are rare, and when they happen they are communicated at least a year in advance. Approx 150,000 tenants, all with different configurations and some so heavily customized that they are effectively unique apps. Salesforce keeps them all online and evolving. In those 27 years there hasnt been a 'lets trash this and rewrite from scratch' and there hasn't been a 'you must migrate your data to our new platform, we're closing the old one'. They've just evolved it while running. They must have got some things very right in the original architecture to be able to do that.

One thing that I find interesting is that they launched their platform language Apex (a sortof subset of Java) in 2007 when TDD was the hot new thing, so TDD is baked into the platform - your Apex code must have at least 75% test coverage, and the tests must pass, before you are allowed to deploy to prod.

They leverage that test coverage when they are upgrading the platform - they have an internal process called The Hammer where they run all customer-created tests against customers own unique configs on the current platform and then again on the next version of the platform to see if any customer tests are being broken. Look it up, its really interesting.


> They must have got some things very right in the original architecture to be able to do that.

I'd argue they (and many larger, older, established etc systems) may not have, but it's part of how it works so while it may not be the best it's the one that is working right now and earning them money - working (and earning) software always trumps correctness etc, in practice.


For me personally the snark isn't because their SRE team is incompotent. It's because software that tries to be everything to everyone is inherently terrible. It's not fun to use for the users, and so many compromises need to be made on the technology side to make that happen that it ends up just being crap all around. This includes Salesforce, SAP, Dynamics, any platforms like that which scale many industries.

Flexibility and abstraction come at a high cost. It doesn't really matter though, world domination at all costs is the name of the game.


Thing is, if one piece or suite of software doesn't try to be everything (in a fairly consistent way), businesses that need certain functionality will end up with various different tools from different suppliers, which is at the very least just as complex and expensive to manage, and in practice more expensive.

AI changes this equation fundamentally, in a way that VC and SaaS founders still haven't realized. Nobody ever liked having to change their business, their workflows, or ducting taping a customization in a SaaS, they did because as we moved from centralized mainframe apps, to PC client-server and then Web based distributed apps, it became increasingly more cost-effective to suffer with a generic, one-size-fits-all SaaS than building at home.

AI coding changes this a lot.


I'm going to give this a "maybe"; the challenge with large scale software isn't in authoring new code or whatever, it's in managing complexity.

I think AIs / agents (and more importantly how we are learning to use them effectively) may help in that regard, but only if they are able to manage that complexity. This'll depend on context window sizes, their ability to explore a codebase, and how well their operators can provide relevant information.

But that's only what they can consume (so codebase, documentation, etc), on top of that are the people that work with / for these systems for decades and who know a lot about things outside of what's written down.


Hmm, could the use of genAI have anything to do with this failure and the inability to quickly fix it?

It's not impossible, but Salesforce has had big outages before LLMs. For a disruption that began at 1am pacific, the response time isn't that bad. 3 hours total to give up on restarts, 4 hours total to validate a quick fix and begin rollout, and the rest of the time since has been waiting for the rollout + addressing subsets of instances that had some issues with restarting+the quick fix. It's nearly 9am pacific now, so Dreamforce is saved~ (It's Dreamforce week this week. Most devs are either focused on that or on soft-vacation / working on lower priority non-feature-work items, it's surprising anything would be updated to production this week that could do this.) The architecture and approval process of everything there has long been setup so that things can't be changed quickly.

The bug was from 2009, so probably not :)

What I'm curious about is why it is a single-PaaS; I'd have expected Salesforce to have the customers quite isolated so the chance of bringing down multiple customers at once was much smaller.

The customers are quite isolated, but it doesn't mean that some services or errors do not propagate. In public cloud terms, think back on some AWS or Azure or even Gmail outages - you probably wouldn't even hear about them if it didn't affect millions of users at once, across security and availability boundaries.

I think it's easy to underestimate how many smaller outages there are in any period of time but which do not affect anyone or only a small number of people due to all the mitigations, due diligence that developers and SREs do, and the self-repairing nature of modern systems.

a few things are global (login service) to some extent, just as AWS places several such things in us-east-1

You still have fleet wide management which can cause issues. Plus there are always a few core services like queues, authz, presentation layer.

Also, mono-tenant architectures is no golden bullet either. Such architecture (often coming from a formerly on-premise product that was SaaS-ified) can easily become hell to operate as it multiplies the integration points (DB parameters, URLs, allowlists, etc).

It's also quite wasteful in terms of resource utilization and hosting costs.


I honestly don’t get the snark. The status page has:

Seemingly meaningful IDs

Search

Region filter

Email update signup

Predictable URLs for instance status so they can be deep linked in runbooks

What appears to be the actual live instance status.

What appears to be the actual live service status in each instance.

An update log with frequent detailed updates.


I despise Salesforce, but when I landed on this page I was like, huh. wow. honesty. Looks at GitHub

So yeah you're exactly right, the snark is not deserved if you ask me, and I'm 82% snark.


This is the case for every single B2B saas product. This is like the "bar is rolling on the floor" level of competence required. Please have higher standards for paid products.

What do you think of Atlassian?

Terrible, I'd argue the vast majority of modern big tech offerings are extremely poor quality where the need for surveillance in the form of constant monitoring/advertising metrics deliberately makes these types of services more costly to maintain and repair over time.

Sure there are like 3 or 5 decent services out there (like S3) but the vast majority are over engineered to be user hostile while extracting out whatever resources they can from their customers.


One of the important questions to always ask about solar is the energy inputs required to make a solar panel, and the time required to "earn it back" with solar electricity. This is different than "cheap price" because the energy consumed in manufacturing usually happens on a different continent, in a different currency, different regulatory regime and is thus easily obscured.


> manufacturing usually happens on a different continent, in a different currency, different regulatory regime

that's irrelevant. They're selling panels at a profit and are churning them out by the millions daily.


1 to 3 years payback for energy.

Check out my post above. What state?

The question is about energy payback. Generating the energy required to create it.

Your comment, if I'm looking at the correct one refers to electricity prices.


You're right. I misunderstood. I think you're right on the 1-3 years though. I think i've heard/seen that before in the solar industry.

Indeed, he and Turing and a handful of approximate contemporaries had a very clear view that was wrong only in its timing.

"This rare episode of CBS’s Tomorrow series, produced to commemorate MIT’s 100th anniversary (1861–1961), explores the early days of artificial intelligence, robotics, and the potential of “thinking machines.” Hosted by actor David Wayne, this documentary-style special features interviews with pioneering computer scientists, including MIT President Jerome B. Wiesner and AI visionary Oliver G. Selfridge of MIT Lincoln Laboratory."

Also a good opportunity to read about https://en.wikipedia.org/wiki/Radia_Perlman in general (she is mentioned in the blog of course).

I met her once in the Bay Area on BART as she was going from the airport to Berkeley to give a lecture (I admit I did not know who she was at the time). We had a nice 1 hour conversation. She's incredibly smart and humble.

It's interesting because we learned this lesson with JVM applets, Flash and X controls in the browser, yet somehow insist on revisiting it...


It's what JIT (just-in-time) inventory and offshore manufacturing took away from us. Hold onto your spare parts.

My dad worked at Lockheed and in the 80s they joked they used JIC (just in case) manufacturing. They had so many parts without a clear reason as to why they created so many.

JIC! That's funny. It may sound like inefficiency, but really it is an option on future flexibility. Just like the big box of cables.

For a brief second, I thought this was about an original 7104.

Are there specific TDS models that you have found to be better, btw, reliability-wise?


>an original 7104

I've got one, they are very cool. I also have a 7834 (storage tube), cool in a different way. On the other hand, they are taking up a lot of space... I also have two 485s, one with a broken trigger.


Other than the very bottom end ones, no. Mostly went to Hp/Agilent instead.


Thanks for answering, not surprising. I think the transition from all-hardware to Windows-driven digital hard on Tektronix and many other storied engineering teams.


Ineed, it's a very good book. Someone should make an animated website version, though.


I found this which might interest you:

https://507movements.com/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: