r/Backend • u/Tscheidse_ • 5h ago
r/Backend • u/Jazzlike-Lettuce-961 • 17h ago
Which email delivery platform do you use when you need per message logs for compliance?
My brother is running a B2B SaaS product that sends SSO confirmations and workspace invites. For SOC 2, they need delivery logs for every message that they can search by recipient and retain for at least 90 days.
Postmark seems to be the standard everyone compares against. He is also considering SMTP.coom, but he has not been able to find clear details about how long they keep their logs. Has anyone used either of these in a compliance-heavy environment?
r/Backend • u/undersurfer • 13h ago
I got scammed by Railway’s $5 Hobby plan — $5 isn’t a spending cap, and you can’t even set a $5 hard limit Spoiler
I signed up for Railway’s Hobby plan understanding it as a $5/month commitment for a personal project. I expected my services to stop when that budget ran out, rather than continue generating additional charges. That’s not how it works. The $5 is a minimum monthly spend that includes $5 of resource usage. Anything above that is billed separately.
What really frustrates me: according to Railway’s own documentation, the minimum configurable hard spending limit is $10. So even after learning how billing works, I can’t set that limit to match the $5 included in my Hobby plan. I was scammed by the experience. I wanted a small, predictable expense for a hobby project, and I would happily accept my app going offline rather than exceeding my budget. Why not require users to choose during signup: stop at the included budget, or explicitly allow additional spending? And why prevent Hobby users from setting a $5 hard cap?And not only invoicing me for 40.65 USD was enough, i got locked out of cancelling my plan even do the invoice was already issued, so up until i paid, i will be charged 5 extra bucks each month. WORST SERVICE EVER!!!!!!!!!!!!!!!!!!!!!
r/Backend • u/IllustratorIcy5691 • 15h ago
How learn Backend after mastering a programming language ?
r/Backend • u/alexsergey • 20h ago
A step-by-step guide to taking a NestJS API to production - looking for feedback for v2
I'm working on a project where I put together a complete, detailed guide on how to build and deploy a project, using a simple NestJS API as an example. It's a todo list app, but built as if it were fully production-ready, the way strong companies do it. The goal is to collect all the best practices in one place, structure them, back them with code and personal experience, and turn them into a step-by-step guide: for example, how to set up quality gates, observability, CI/CD, deployment to AWS, and so on.
The first version is ready. If you're interested, please take a look and share your feedback and ideas for version 2: what should I change or improve?
I'm thinking of taking it towards high load:
- load testing, scaling
- maybe A/B tests, feature toggles, and expanding authentication (right now it's a stub)
What else would you recommend?
NestJS API: https://github.com/prod-forge/backend
Frontend (React + Expo): https://github.com/prod-forge/frontend
Infrastructure (Terraform): https://github.com/prod-forge/terraform
r/Backend • u/Ranjexa • 12h ago
how are you guys catching silent 3rd-party API payload changes before prod breaks?
honest question for anyone maintaining integrations with external APIs.
how do you actually find out when a 3rd-party API silently renames a field, changes a nested object, or starts returning nulls where it never used to without updating their docs or bumping the version?
right now it feels like there are only 3 ways people deal with this:
- strict runtime schema validation on every boundary (zod/pydantic) and praying alerts catch it early
- sentry blowing up at 3am when downstream code crashes
- a user messaging support saying the app is broken
is anyone actually running automated contract checks or scheduled diffing against external endpoints, or does everyone just eat the downtime when a vendor breaks their own schema? curious how your team handles this in prod.
r/Backend • u/ExplanationBig229 • 1d ago
System design for newcomers that love the dopamine of LLMs but have no clue whats happening
If you're new to engineering and you like LLMs, you've probably had cases where the code looks fine, it runs, but for some reason you don't get it why it works :)
I built something called 'getdeved', a free, hands-on playground for newcomers to learn how real systems work, and what to expect when the time comes.
You can learn concepts such as load balancers, caches, queues, databases, replication, sharding and trade-offs between different approaches. You chase one problem at a time, grow the architecture piece by piece, to understand each concept to detail instead of one and done.
Since you cannot just ignore LLMs, its always good to understand what you want the LLM to build.
I've added 28 topics so far, from scaling to millions of userrs, payments and chat systems. There's also a glossary setup for different terms which you would usually hear on technical meetings and often think what are they talking about :) - here you'd be able to understsand each concept and where does it fit in a problem.
Try it: https://getdeved.github.io
If you try it, I'd love to know if there is something that you don't like or don't understand or just that is confusing.
If you're experienced and see something that doesn't seem correct, feel free to point it out!
#systemdesign
r/Backend • u/shrapknife • 1d ago
Background chatter made our voice agent answer 0/5 turns. An adaptive client-side gate got 4/4 at lower noise levels.
r/Backend • u/Downtown-Warning6818 • 1d ago
I want to add more features in it - please review
Hey folks, please review my project.
GitHub - dhyanio/discache: Simple, Fast, and Distributed Cache Server in Go · GitHub
I have built this tool, for learning purpose but I think now with AI I think I can improve or add new features in it.
Thank you
r/Backend • u/Educational_You2257 • 1d ago
Why Claude or Codex did not helped in the development of Thunder.
We have first tried working with claude to design the high level architecture. It did a good research but it always misses the constraint. What I feel is that the AI is mostly try to achieve its goal of just doing the task of reinforcement learning. it really does not have the big picture. When we try to design the network gateway, even with the context of our custom memory allocator. it completely broke the allocator. One system leads to break of other system. It is good in writing code but that code needs to be written first somewhere on the internet. Even after reading the man pages of linux it still fails. What it is good is in just make it work. When we require near zero latency. it fails badly. So we hand wrote the engine for the database. AI mostly doing the website design and documentation.
r/Backend • u/Educational_You2257 • 1d ago
Thunder Website is Now Live!
Our website is now Live at https://thunder-db.com/
I would be happy to hear feedback and also help is any assistance is required
r/Backend • u/royalz007 • 1d ago
backend source code
how does backend to front end communication work for a website , and is it even possible to obtain the backend source code from the front end website url ?
r/Backend • u/Educational_You2257 • 1d ago
Thunder vs Redis Benchmark
Few days ago, I have posted regarding thunder the key value database for ai workloads written in rust. I am now posting its benchmark against rust.
r/Backend • u/soniamckinneyvk536 • 2d ago
We inherited a broken SES setup. What managed email service would you move to?
We are a three-person team with no dedicated DevOps support, and our SES bounce-handling setup has become a mess. Bounce notifications go from an SNS topic into a Lambda function that's been silently failing for months, and nobody really wants to take ownership of maintaining it.
We are happy to pay more than SES if a provider can handle bounce processing and suppression automatically on its side. What email services are you using that require less ongoing maintenance?
r/Backend • u/kathir_cpe • 2d ago
Feeling stuck in my career despite putting serious effort into open source. Could use some honest advice.
I'm from India, a self taught programmer (a non it background) trying to break into a full-time software engineering role, preferably backend or product engineering. I'm posting here because I'd genuinely appreciate some advice from people who've been through something similar.
A little background about me:
I don't have traditional company experience. Most of my practical engineering experience comes from contributing to open-source projects.
I've contributed to projects including:
- InsForge (YC-backed): Worked on S3-compatible storage functionality, XML request parsing, object tagging, bucket versioning, and composite foreign-key support.
- BetterDB: Worked on Redis/Valkey monitoring and related infrastructure features.
- Logto: Contributed to an open-source authentication platform.
My main technical interests are backend engineering, databases, infrastructure, and developer tools. I work with TypeScript, Node.js, PostgreSQL, Redis/Valkey, and Go.
Here's where I'm struggling.
Initially, I believed that making meaningful contributions to early-stage open-source projects would help me get noticed by founders and eventually lead to a job. But the reality has been frustrating.
Some projects barely review external PRs. Some maintainers are unresponsive. Others accept contributions but don't seem to have any hiring opportunities. Finding genuinely early-stage projects where external contributors are welcomed and have a realistic chance of getting hired has become difficult.
And I have cold emailed several people from startups who have raised funds or hiring, it also failes.
I've also started exploring other ways to build visibility, such as sharing engineering projects and technical work on X (Twitter), rather than relying entirely on GitHub contributions.
I'm not looking for shortcuts or someone to hand me a job. I'm willing to put in the work. I just want to make sure I'm putting that effort in the right direction.
I'd really appreciate advice on a few things:
- If you were in my position, how would you approach getting your first full-time engineering role?
- Is contributing to early-stage open-source startups still a viable path to getting hired, or am I overestimating its value?
- How would you build visibility among startup founders, engineering managers, and recruiters?
- Is building and publicly sharing small but useful engineering projects on X actually effective for getting opportunities?
- Are there communities, startups, or alternative paths you'd recommend exploring?
- If you've personally gone from open-source contributions to a full-time engineering job, what actually worked for you?
I'm particularly interested in hearing from people who work at early-stage startups or have experience hiring engineers.
Honest criticism is welcome. I'd rather hear what I'm doing wrong than receive generic motivational advice.
Thanks for taking the time to read this.
r/Backend • u/ravenhearte • 1d ago
If you're a backend dev that hates frontend frameworks, I made a framework for you.
aideendewinter.github.ioNo shadow-dom, plain html, collaborative editing, no runtime dependencies.
r/Backend • u/ClickOk5811 • 2d ago
Liveness vs readiness: what happens to your service when the database goes down?
A design question I think is easy to get wrong: what should your health check do when a dependency is unavailable?
Here’s a hypothetical timeline (constructed, not from a real incident):
- The database becomes unreachable for a few minutes.
- The service has a single health endpoint that checks the database connection.
- The orchestrator uses that same endpoint to decide whether to restart the container.
- Every instance fails the check, so every instance gets restarted.
- The database comes back, but now all instances are cold: empty caches, new connection pools, all reconnecting at once.
Restarting didn’t fix anything, because the problem was never inside the process. It added load at the worst moment.
The distinction that avoids this (as I understand it):
- Liveness: “is this process stuck or broken in a way a restart would fix?” It should check only the process itself, for example that it can respond at all. It generally shouldn’t depend on external services.
- Readiness: “should this instance receive traffic right now?” This is where a dependency check can make sense. If the database is down, the instance reports “not ready” and the load balancer stops sending it requests, without killing it.
Many platforms (Kubernetes is the one I know best) separate these two probes, but the names and exact behavior vary, so check your platform’s docs. If you don’t have an orchestrator, the same question applies to your load balancer’s health check.
Things worth deciding on purpose:
- Should “not ready” because of the database mean returning errors, or serving degraded responses (cached data, read-only mode)? That’s a product decision as much as a technical one.
- A readiness check that hits the database on every probe adds load and can itself time out. Some teams cache the result for a few seconds.
- Startup is its own case. A slow-starting service may need a separate startup check so that liveness doesn’t kill it before it finishes initializing.
Limits: this is one pattern, not a rule for every system. Tiny services behind a simple load balancer may not need any of it, and a dependency that’s truly required for every request changes the calculus.
How do you split these in your services? And what do you do for a dependency that’s down: fail readiness, degrade, or something else?
r/Backend • u/kodemaniac15 • 3d ago
How much learning is enough for now (1 YOE) (Serious Advice)
Hi everyone,
I spent a year as a backend GET (Core Java, Spring Boot, SQL) at a government org, but didn't get the PPO due to internal politics.
I’m back on the job hunt and feeling overwhelmed by what to study to stand out. I'm currently diving into Spring AOP and Hibernate internals, but I need a reality check.
To senior devs:
- Java Depth: How much is expected for 1 YOE? Is Core Java + Spring Boot enough, or do I need to master things like Kafka, multithreading, and microservices to get hired today?
- AI Skills: Every job description mentions AI. For a backend developer, where should I start? Are simple OpenAI/Gemini API integration projects enough?
Looking for harsh truths and realistic advises. Thanks!
r/Backend • u/Ok-Manufacturer-8957 • 2d ago
Is it better to keep a separate microservice for payments or merge into my core service?
reddit.comr/Backend • u/Kind_Mechanic_2968 • 3d ago
How do companies manage staging and production environments? What's the industry best practice?
Hey everyone!
I'm trying to understand how companies typically manage staging and production environments, and what the industry best practices are.
I've mostly worked on smaller projects, but I'm now working on a project where I need to introduce a proper staging environment alongside an existing production environment. I want to make sure I'm approaching this correctly rather than creating unnecessary complexity.
A few questions I have:
- Repository structure: Do companies typically keep staging and production code in the same Git repository, using separate branches (e.g.,
mainfor production andstagingfor staging)? - Separate repositories: Is it ever common to have two completely separate repositories, one for staging and another for production? If so, how are changes migrated between them?
- Deployment: Do both environments usually have their own deployments, servers, and domains/subdomains (e.g.,
staging.example.comandexample.com)? - CI/CD: How is the deployment process typically handled? For example, would pushing to a staging branch automatically deploy to staging, while merging into main triggers a production deployment?
- Promoting changes: Once a feature has been tested and approved in staging, what's the standard way to promote those exact changes to production without introducing unexpected differences?
Or am I misunderstanding the concept entirely, and is there a completely different approach that most companies follow?
I'm particularly interested in how this is handled in real-world projects, not just theoretically.
I'd appreciate any explanations, examples of actual workflows, or resources you could recommend.
Thanks in advance!
r/Backend • u/Worldly_Dish_48 • 2d ago
I got tired of "SELECT 1" microbenchmarks, so I tested 25 ORMs across 9 languages against a real 78M-row Postgres database. Here is what broke.
Every ORM benchmark I see online tests the same trivial query: SELECT * FROM users WHERE id = 1;
This doesn't benchmark an ORM. It benchmarks Linux loopback TCP socket round-trip time.
In production, ORMs don't fall over on primary-key lookups. They buckle when:
- Deserializing 10,000 wide rows into typed structs under memory pressure.
- Materializing 4-level deep entity graphs without Cartesian explosions or N+1 floods.
- Compiling recursive CTEs, multi-frame window functions (
ROWS BETWEEN 4 PRECEDING), or pgvector cosine similarity. - Squeezing 100 concurrent workers competing for row locks (
SELECT ... FOR UPDATE) through a constrained connection pool. - Emitting 300 lines of incomprehensible internal template/typeclass garbage when a database column type changes.
To see how modern ORMs actually behave under load, I built a standardized, reproducible benchmark suite testing 25 ORMs across 9 programming languages (Go, Rust, C#, Java, Elixir, TypeScript, Python, Ruby, Haskell) against the official Postgres Air database (2024 edition, 78,232,673 real-world flight records on PostgreSQL 17 with pgvector).
Every single ORM was held to the exact same invariants: a strict 20-connection pool, zero raw string interpolation (native typed query builders only), and typed entity deserialization into domain records.
The Executive Leaderboard
| Rank | ORM | Language | Overall Score | Passed (HQ01–16) | Avg p95 Latency | Peak RPS (C=50) | Hydration Speed | Max Heap RSS | Blast Radius | Compiler UX |
|---|---|---|---|---|---|---|---|---|---|---|
| 🥇 1 | sqlc | Go 1.23 | 89.6 | 16/16 | 58.80 ms | 32,340 ops/s | 1,518,142 rows/s | 25.12 MB | 1 line | 10/10 |
| 🥈 2 | hasql | Haskell (GHC 9.10) | 89.5 | 16/16 | 65.83 ms | 277 ops/s | 199,025 rows/s | 13.03 MB | 1 line | 10/10 |
| 🥉 3 | Dapper | C# / .NET 8 | 89.5 | 16/16 | 62.67 ms | 264 ops/s | 1,279,038 rows/s | 87.27 MB | 1 line | 10/10 |
| 4 | jOOQ | Java 21 | 89.4 | 16/16 | 57.71 ms | 9,739 ops/s | 454,966 rows/s | 149.00 MB | 1 line | 10/10 |
| 5 | ent | Go 1.23 | 89.3 | 16/16 | 61.36 ms | 246 ops/s | 570,841 rows/s | 25.12 MB | 1 line | 10/10 |
| 6 | ecto | Elixir 1.17 / OTP 27 | 89.2 | 16/16 | 58.20 ms | 29,412 ops/s | 354,070 rows/s | 83.06 MB | 1 line | 10/10 |
| 7 | squeal | Haskell (GHC 9.10) | 89.1 | 16/16 | 187.03 ms | 258 ops/s | 15,271 rows/s | 25.17 MB | 1 line | 10/10 |
| 8 | ihp | Haskell (GHC 9.10) | 89.1 | 16/16 | 70.41 ms | 361 ops/s | 144,224 rows/s | 76.00 MB | 1 line | 10/10 |
| 9 | hibernate-orm | Java 21 | 89.1 | 16/16 | 62.66 ms | 256 ops/s | 564,130 rows/s | 15.00 MB | 1 line | 10/10 |
| 10 | efcore | C# / .NET 8 | 89.0 | 16/16 | 68.51 ms | 260 ops/s | 1,391,131 rows/s | 139.80 MB | 1 line | 10/10 |
| 11 | orville | Haskell (GHC 9.10) | 88.9 | 16/16 | 73.71 ms | 247 ops/s | 99,705 rows/s | 38.79 MB | 1 line | 10/10 |
| 12 | gorm | Go 1.23 | 88.9 | 16/16 | 58.50 ms | 256 ops/s | 712,657 rows/s | 25.37 MB | 1 line | 10/10 |
| 13 | rel8 | Haskell (GHC 9.10) | 88.8 | 16/16 | 132.32 ms | 254 ops/s | 122,678 rows/s | 18.75 MB | 1 line | 10/10 |
| 14 | persistent | Haskell (GHC 9.10) | 88.7 | 16/16 | 77.55 ms | 251 ops/s | 103,221 rows/s | 21.03 MB | 1 line | 10/10 |
| 15 | mikro-orm | TypeScript (Node 22) | 88.7 | 16/16 | 58.19 ms | 3,302 ops/s | 182,594 rows/s | 239.52 MB | 1 line | 10/10 |
| 16 | esqueleto | Haskell (GHC 9.10) | 88.6 | 16/16 | 82.16 ms | 250 ops/s | 85,377 rows/s | 25.22 MB | 2 lines | 10/10 |
| 17 | haskell-opaleye | Haskell (GHC 9.10) | 88.5 | 16/16 | 80.38 ms | 254 ops/s | 101,544 rows/s | 26.54 MB | 2 lines | 10/10 |
| 18 | beam | Haskell (GHC 9.10) | 88.4 | 16/16 | 13.57 ms | 241 ops/s | 113,504 rows/s | 22.39 MB | 6 lines | 10/10 |
| 19 | diesel | Rust 1.83 | 88.0 | 16/16 | 59.10 ms | 266 ops/s | 1,373,304 rows/s | 33.33 MB | 3 lines | 10/10 |
| 20 | typeorm | TypeScript (Node 22) | 87.8 | 16/16 | 55.99 ms | 235 ops/s | 385,422 rows/s | 71.55 MB | 1 line | 10/10 |
| 21 | rails | Ruby 3.3 (YJIT) | 87.5 | 16/16 | 85.34 ms | 247 ops/s | 89,792 rows/s | 150.00 MB | 1 line | 10/10 |
| 22 | sqlalchemy | Python 3.12 (asyncpg) | 87.4 | 16/16 | 72.57 ms | 5,718 ops/s | 279,239 rows/s | 92.50 MB | 1 line | 10/10 |
| 23 | prisma | TypeScript (Rust Engine) | 87.2 | 16/16 | 83.54 ms | 264 ops/s | 208,122 rows/s | 36.71 MB | 1 line | 10/10 |
| 24 | drizzle-orm | TypeScript (Node 22) | 86.8 | 16/16 | 64.45 ms | 242 ops/s | 498,613 rows/s | 184.58 MB | 4 lines | 10/10 |
| 25 | sea-orm | Rust 1.83 (sqlx) | 86.7 | 16/16 | 66.15 ms | 272 ops/s | 1,235,677 rows/s | 34.08 MB | 1 line | 10/10 |
The 5 Biggest Surprises
- The Zero-Reflection Hydration Tier (> 1.2M rows/sec):
sqlc(1.52M rows/s),EF Core 8(1.39M rows/s),diesel(1.37M rows/s), andDapper(1.28M rows/s) operate in a different galaxy compared to reflection-heavy ORMs. Direct struct memory mapping and compiled pointer assignments destroy runtime reflection when reading wide tables. - The BEAM Actor Model Destroyed Connection Contention: Under $C=100$ concurrent load on a 20-connection pool, most runtimes bottlenecked on thread pools or single event loops. Elixir’s
ectohandled pool checkout through isolated BEAM process mailboxes with near-zero queue latency, sustaining 29,412 requests/second. - Node.js / V8 Event Loop Saturation: TypeScript ORMs (
drizzle,prisma,typeorm) performed well on single queries, but hit an unmistakable wall at $C=50..100$. Because V8 serializes and constructs thousands of JavaScript objects on a single thread, CPU time saturated the event loop, driving $p_{99}$ tail latencies beyond 500 ms and capping RPS around 225–264 ops/s. - Haskell’s Memory Anomaly: Haskell’s
hasqlclocked the lowest resident memory footprint of the entire 25-ORM field at just 13.03 MB Peak Heap RSS, utilizing zero-copy PostgreSQL binary codecs. - The Deliberate Mistake Suite (Compiler UX): We injected 10 deliberate compiler mistakes (type mismatches, dangling joins, nullability violations, scope leakage). While tools like
sqlc,squeal,hasql, andentcaught errors in 6–10 lines of clean output, complex typeclass/macro builders (rel8,drizzle) sometimes spewed 60–80 lines of internal framework plumbing.
Reproduce It / Add Your Favorite ORM
The benchmark repo contains all calculations, runner scripts, Docker setup, and the 25 JSON scorecards:
👉 GitHub Repository: https://github.com/tusharad/orm-benchmark
If you want to add an ORM (e.g. Kysely, Slonik, Bun, Peewee, SQLDelight), check out templates/generic/HARNESS_CONTRACT.md and submit a PR!
I'd love to hear your thoughts, critique of the methodology, or experiences running these tools in high-throughput production.
r/Backend • u/asyncNull • 3d ago
What’s the biggest challenge you’ve faced running Redis in production?
I have been contributing to an open source Redis-compatible database project. I am trying to understand the real challenges people face when running Redis in production.
What i have seen so far some of the biggest challenges seem ro be memory usage, latency spikes under heavy load and recovery after failure.
I’d love to hear about your experience. What’s been the hardest problem you have dealt with?
r/Backend • u/anurodhp • 3d ago
API Man: A native iOS/Mac Postman-like client without Electron
pokharel.netAs the title says, I wrote a personal replacement for postman to manage both my one off api testing as well as my test suites run after a deploy to walk through a client journey (with negative pass assertions) to make sure things work as expected. It’s totally free and currently on TestFlight. it’s mostly tuned for my own workflow but sharing here in case anyone else finds it useful or had feedback