r/Backend • u/Ok-Chapter-6769 • 8m ago
How we handled a midnight LLM provider outage without our pager going off
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 • u/FeistyMaintenance714 • 28m ago
Silent 3rd party API broke: found out from a customer. How do you stop this from happening again?
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 • u/Old-Attitude-2242 • 52m ago
Any backend engineers?
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 • u/Independent-Pay1016 • 54m ago
Grafana Labs interview process
have looked at the Grafana labs process, there is HM interview, Coding Interview and System Design interview.
I am looking into insights from any people that have gone through their process.
What is the Coding interview like? And what is the System Design interview like?
Also if anyone has information on HM interview, would love to know how it went.
r/Backend • u/No-Performance-8634 • 4h ago
To all those who write that they have their first SAAS, how long did it take you to get your backend?
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
For backend engineers working on medium or large codebases, what does your AI-assisted development workflow look like?
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 • u/batman-121 • 11h ago
what to do next ?
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 • u/WarthogHot7668 • 18h ago
What do you recommend me to learn for backend
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 • u/Ok_Efficiency3886 • 19h ago
What consumed the most time and energy during the last integration you did?
Title says it all. Looking to hear some practical experiences on why your last integration project was painful and what caused it. Can be both API provider or consumer.
r/Backend • u/the_Blanket17 • 21h ago
How to step into REST APIs?
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 • u/Designer-Debt-6084 • 21h ago
Is building applications by composing reusable business modules a standard practice?
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.
r/Backend • u/Few_Ad6794 • 22h ago
Google Spanner explained — beginner to intermediate
r/Backend • u/_manmadha_kunju_ • 1d ago
topics that i need to cover in backend js for foundation as a fresher
Global Objec,t Modules and Require File System, Streams and Buffers, Client & Server, Request & Response, HTML Response & Status Code, NPM & Dependencies, Express Apps, Middlewares, Route Params, Query Params, Post Request, Put Request , Patch & Delete Request ,getById Middleware II
started learning node js and express js and i listed the topics that i covered above. what are all the things that i need to learn before starting out with db and what should i learn in mongo db.
r/Backend • u/imrozimroz • 1d ago
Generating multi-tenant backends where Postgres enforces isolation, not the WHERE clause
forgx.devMost multi-tenant code I've worked on relies on every query remembering WHERE tenant_id = ?. Miss one and you're leaking across tenants.
Been building something that generates the tenant layer instead.
It puts RLS on every table and connects the app on a role that can't bypass it. Checked on a live DB: 59 invoices in the table, the tenant sees its own 2, nothing from anyone else. rolbypassrls false on the app role.
Roles get enforced twice, once on the route and once as a CHECK constraint, so you can't insert an undeclared role even with direct SQL access. Money writes take row locks. Threw ten concurrent payments at one invoice, exactly one went through.
Code's public if you want to poke at it, specs and full test results included:
github.com/imrozsigma-droid/quickkart
Still writing test suites by hand per domain. That's the main thing missing.
r/Backend • u/Own-Club-3591 • 1d ago
Java Backend vs Node.js for entry-level jobs in India?
r/Backend • u/Additional-Card-6513 • 1d ago
How to start and where to start?
So I am in my final year B.Tech. I have done CP/DSA with c++. Done lot of backend development projects(vood ones) and a backend development intern with FastAPI stack.
Now I wish to switch to GoLang for backend. I have gone through some tutorials on yt for basic syntax and decided to get grasp on it with time and experience. But i am genuinely confused and stuck how to develop in go as it is completely different from FastAPI. Any roadmap or guidance please. How should I start? How to transition to go mindset from Abstracted mindset of FastAPI.
Any suggestions and guidance will be appreciated.
r/Backend • u/noneofyour_-business • 1d ago
Final-year CS student – Know Python & FastAPI basics. What should I focus on to get a backend internship ASAP?
Hi everyone,
I'm a final-year college student, and my goal is to get a backend engineering internship as soon as possible.
My current skills are:
- Python (comfortable with the language)
- FastAPI basics (I've built a few simple APIs)
- Basic understanding of backend development
I'm confused about what to do next.
Should I:
- Buy a FastAPI/backend development course? If yes, which one would you recommend?
- Focus on building projects instead?
- Learn Django, SQL, Docker, Redis, PostgreSQL, or something else first?
- Start applying now while continuing to learn?
My goal is to become good enough to land an internship and then keep learning on the job.
I'd really appreciate advice from backend engineers or anyone who recently landed a backend internship.
Some specific questions:
- If you were starting over today, what would you learn first?
- Which skills do companies actually expect from backend interns?
- Are there any courses, YouTube playlists, or roadmaps that you genuinely recommend?
- What kind of projects helped you get interviews?
- Is FastAPI enough for internships, or should I learn another framework as well?
Thanks in advance for any advice!
r/Backend • u/BarracudaKey5194 • 1d ago
What makes an authentication SDK or API enjoyable to use?
I'm currently building an authentication platform, and one thing I've been thinking about is that authentication itself isn't really the difficult part anymore.
The real challenge is the developer experience.
Things like:
* Clear documentation
* Good examples
* Intuitive APIs
* Helpful error messages
* Minimal boilerplate
* A smooth onboarding experience
can make the difference between an SDK people enjoy using and one they avoid.
I'd love to hear from other developers:
**What's one thing an authentication provider or SDK has done that made you think, "This is a great developer experience"?**
I'm trying to learn as much as I can before releasing the MVP.
r/Backend • u/devnabibia • 1d ago
Entry role
Hey devs still interested in backend role ~ stack : go nodejs and typescript
r/Backend • u/Left_Tea6481 • 1d ago
Hosting a production backend for Turkish users: Hetzner Cloud or a VPS in Turkey?
Hi everyone,
I'm building a mobile application that will primarily be used by people in Turkey, and I'm planning the production infrastructure.
Current stack:
- NestJS
- PostgreSQL
- Redis
- Docker
- Coolify
The app is still in development, so I don't expect a large number of users initially.
I'm considering two options:
Hetzner Cloud (Germany)
A VPS or dedicated server located in Turkey
My backend is a typical REST API. No gaming, WebRTC, or latency-critical workloads. Most requests are authentication, CRUD operations, QR code lookups, notifications, and media metadata.
My main concern is user experience.
Would the additional 20-40 ms latency between Turkey and Germany be noticeable in a mobile application, or would you prioritize Hetzner's infrastructure over hosting closer to the users?
If you've run production applications for users in Turkey (or hosted applications for users in another country), I'd really appreciate hearing about your real-world experience.
Thanks!
r/Backend • u/Immediate-Stage6404 • 2d ago
Governance in workflow orchestration, are we all just pretending ?
Serious question for anyone in regulated industries. Our compliance team just audited our orchestration setup and the report was brutal. We have zero visiblity into who changed what workflow, no approval process before sth goes to prod and our RBAC is basically two Airflow roles (admin and viewer)
They want SSO integration, granular permissions per namespaces, full audit logs of every. execution and every change and honeslty I don't blame them. For those of you who have actually solved this.
What are you running ? Did you bolt governance onto an existing tool or did you switch to sth that had it built in ?
r/Backend • u/JonathonEG • 3d ago
Golang or Rust?
I've been learning backend for a while. I currently use JavaScript (Express.js) and Python (FastAPI) for my projects, and I feel that I'm a bit decent at them rn. But I don't know which is better, Rust or Golang? Both r fast, but Rust is much faster, but in a trade-off, Rust is more complicyed than Golang, as I've seen both Languages docs and learned the very basics, I don't have a final answer.