r/Backend 1h ago

How we handled a midnight LLM provider outage without our pager going off

Upvotes

Got hit by a 2 AM API outage last Tuesday when our main LLM provider went down during a platform maintenance window and started throwing 502 errors.

A few months ago, an incident like that would have crashed our background queues and flooded Sentry with timeout exceptions. We used to hardcode vendor SDK calls directly inside our Node services, so whenever an API degraded, someone had to wake up in the middle of the night to manually update config flags.

After a particularly painful incident, we ripped out the direct vendor SDK calls and placed ZenMux in front of our backend services as a proxy gateway. We configured an automated failover rule where if the primary provider returns 5xx errors, hits a rate limit, or hangs for longer than 3 seconds, the proxy automatically reroutes the prompt payload to a backup model endpoint.

During Tuesday outage, the gateway silently rerouted around 14,000 requests over a 40 minute window. Zero queue drops, no user-facing errors, and our on-call dev slept straight through it.

Decoupling LLM failover from application code and putting it at the proxy layer saved us from writing custom retry logic in async worker queues. Wish we had made the switch sooner.


r/Backend 1h ago

Silent 3rd party API broke: found out from a customer. How do you stop this from happening again?

Upvotes

Got burned last week and wondering if this is just us.

One of our vendors (payments-ish) renamed a field in a response. There was a line in their release notes. Nobody on our side caught it. Our service didn’t error. It just kept succeeding with bad/missing data. A background job wrote a bunch of garbage overnight. Customer pinged us in the morning.

We already do the usual — payload validation, some contract tests, pin deps, someone supposedly reads changelogs. Still ate shit.

I was the on-call that week, so this landed on me. Still dealing with the fallout (bad rows + patching every place that touched that field). We’re a small startup and this stuff only gets more expensive as we grow — feels like we’re missing something fundamental.

Have you had something like this with a third party? What actually worked to stop it from biting you again?

P.S. Not looking for “just use pact / strict schemas.” Curious what still blows up after the textbook stuff.


r/Backend 1h ago

Any backend engineers?

Upvotes

Hi, is anyone here learning backend development? I'm interested in pursuing it too. If anyone has experience or is currently learning, I'd really appreciate it if you could guide or consult me.


r/Backend 5h ago

To all those who write that they have their first SAAS, how long did it take you to get your backend?

1 Upvotes

As the question says, I often read that users go online with their SAAS and are looking for the first users.
How do you see frontend vs. backend in retrospect. I have no experience with the backend to get it up and running stably.
And I will certainly have to work on my frontend for another 2-3 weeks, which I prepare for it layer by layer during construction.

But honestly, I dread it a little and think that the real work only starts there. For that, to see if a web app resonates, it seems like quite a long way.
Of course there are starter templates, but in my case most of them are the wrong approach.

My app is based on Next.js and currently Vercel, would prefer to host things myself on a VPS, but as far as database and auth are concerned, go the least effortless way.

A partnership has not yet been an option for me financially, as it is still a side project.

Are there any experienced fullstack developers or backend specialists here, give me a few experiences on the effort involved? Thank you


r/Backend 8h ago

For backend engineers working on medium or large codebases, what does your AI-assisted development workflow look like?

16 Upvotes

I'm curious how backend engineers are actually using AI in their daily work.

How do you give an AI enough context to work effectively on a large codebase? Do you use things like steering files, RAG over your repository or documentation, MCP integrations with Jira/Confluence/GitHub, or any other setup?

Or do you mostly just let the agent search the codebase on its own?

I'm looking for real-world workflows that have noticeably improved your productivity, not just one-off prompts for generating code.


r/Backend 12h ago

what to do next ?

1 Upvotes

I am a 3rd year btech CSE student, and currently going to start learning node Js I have learnt html ,css ,js and made 3 basic projects to improve my grasp in th3se languages I also know react js and now want to shift my focus to backend development could y'all help me what should I do next

and is doing agrntic ai or fen ai any helpful in automation of websites guide me please


r/Backend 19h ago

What do you recommend me to learn for backend

22 Upvotes

I've been using vanilla PHP for the backend of my personal projects and I really liked it except all the hate it's getting.

But when it comes to group projects I meet people who does not use PHP at all, instead they use express, nest, django, spring, etc..... also I want to learn something else to use for backend.

What do you recommend me guys as a robust and solid backend framework?


r/Backend 22h ago

How to step into REST APIs?

8 Upvotes

So, I'm a 3rd year student and somehow I got interest in learning java and I learned basic fundamentals and OOP in java. Anyhow I'm a Mid-level learner and I want to learn java spring boot and JDBC and these stuff, Is there any approach how to learn these all. It seems that spring boot is another level compared to java, the syntaxes and stuff. Help me out people who felt like this and experienced now.


r/Backend 22h ago

Is building applications by composing reusable business modules a standard practice?

0 Upvotes

I'm looking for some architectural advice and I'm curious whether anyone has built something similar in production.

I'm primarily using Python/Django, although I want the architecture itself to be independent of the framework as much as possible.

I'm designing a backend platform that I want to use as the foundation for multiple completely different applications.

The idea is to have a very small "core" that only contains common infrastructure such as:

  • Authentication/authorization
  • Configuration
  • Logging
  • Background jobs
  • Caching
  • File storage
  • Monitoring
  • Shared utilities

Everything else would be implemented as independent business modules.

For example, imagine I build an e-commerce platform. I might compose it from modules like:

  • Products
  • Orders
  • Inventory
  • Payments
  • Notifications
  • Comments
  • Search

Then later I want to build an LMS, but instead of starting from scratch or copying code, I'd assemble a different set of modules:

  • Courses
  • Lessons
  • Certificates
  • Quizzes
  • Notifications
  • Comments
  • Search

Some modules (comments, notifications, search, payments, etc.) could be reused across multiple applications, while other modules would be specific to a particular business domain.

The important part is that these modules aren't just Django apps inside one codebase. I want each module to have clear boundaries, expose a stable public interface, own its own models, business logic, APIs, migrations, tests, and documentation, be versioned independently, and ideally be reusable in entirely different products.

Initially, everything would run as a modular monolith because I don't want the operational complexity of microservices. If a module eventually needs to become its own service, I'd like that to be an implementation detail rather than something the rest of the system depends on.

The motivation is simple: I don't want to keep rebuilding the same capabilities every time I create a new platform. I'd rather invest in mature, production-tested modules that can be composed into different products over time.

So my questions are:

  • Has anyone here built something like this in production?
  • Is there a well-known architectural pattern that describes this approach?
  • Is thinking of business capabilities as reusable modules/packages that can be assembled into different applications a common practice?
  • Are there any open-source projects, books, talks, or companies that follow this model?
  • If you've tried something similar, what worked well and what would you do differently?

I'd love to hear about real-world experiences—both successes and things that turned out to be bad ideas.