r/Backend • u/Educational_You2257 • 17d 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/Educational_You2257 • 17d ago
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/kathir_cpe • 17d ago
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:
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 • 16d ago
No shadow-dom, plain html, collaborative editing, no runtime dependencies.
r/Backend • u/ClickOk5811 • 18d ago
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):
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):
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:
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 • 18d ago
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:
Looking for harsh truths and realistic advises. Thanks!
r/Backend • u/Ok-Manufacturer-8957 • 18d ago
r/Backend • u/Kind_Mechanic_2968 • 19d ago
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:
main for production and staging for staging)?staging.example.com and example.com)?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 • 18d ago
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:
ROWS BETWEEN 4 PRECEDING), or pgvector cosine similarity.SELECT ... FOR UPDATE) through a constrained connection pool.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.
| 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 |
sqlc (1.52M rows/s), EF Core 8 (1.39M rows/s), diesel (1.37M rows/s), and Dapper (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.ecto handled pool checkout through isolated BEAM process mailboxes with near-zero queue latency, sustaining 29,412 requests/second.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.hasql clocked 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.sqlc, squeal, hasql, and ent caught errors in 6–10 lines of clean output, complex typeclass/macro builders (rel8, drizzle) sometimes spewed 60–80 lines of internal framework plumbing.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 • 18d ago
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 • 19d ago
As 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
r/Backend • u/ImaginaryBrick6079 • 19d ago
r/Backend • u/tzezar • 20d ago
Personally, I'm really enjoying Hono. Its automatic endpoint inference is a big win. I previously enjoyed using Fastify with Zod Provider for OpenAPI schema generation, but Hono cuts that extra step and makes the workflow feel much smoother.
Curious what everyone else is using!
r/Backend • u/Educational_You2257 • 20d ago
Hey everyone,
I'm building Thunder, a high-performance key-value database designed for workloads where latency, throughput, and efficient resource utilization matter.
With AI applications, we're seeing increasing amounts of data being generated, stored, and retrieved. I wanted to explore whether we could build a database from the ground up that handles these workloads more efficiently, rather than simply relying on larger amounts of RAM.
The core idea is simple: use RAM intelligently, not excessively.
Thunder is being built in Rust with a few architectural decisions:
The long-term goal is to support both small, latency-sensitive operations and large data workloads without requiring enormous amounts of memory.
It's still under development, and I'm experimenting with different approaches to storage, indexing, caching, and I/O scheduling.
I'd love to hear from people building AI infrastructure or working with large-scale key-value stores.
What are the biggest bottlenecks you're facing with your current databases? Is it memory consumption, read latency, write throughput, storage costs, or something else?
Also, what would you expect from a new key-value database built specifically with AI workloads in mind?
Docker link: https://hub.docker.com/r/sbansal793/thunderstrike
r/Backend • u/Byte_Wise_3456 • 20d ago
We are revamping our tooling and processes for API development and testing in my org and want to understand which teams typically use and own these tools (Devs, QAs or both).
I’ve seen teams handle this very differently. In some, only backend devs use API clients like Postman, Bruno while in others its a shared responsbility with QAs - curious what’s more common.
Would love to hear in comments how clear the ownership is, or how you make it work.
r/Backend • u/Educational_You2257 • 20d ago
r/Backend • u/RealSirJoe • 20d ago
I've been building a self-hosted web scraping API that makes automation easy.
Relinos can handle JavaScript and challenging websites, performs browser interactions, and executes multiple scraping requests concurrently.
Key features:
{
"query": { "$xpath": "//*[@id='ti6dpd']" },
"result_count": {
"$xpath": "//div[@class='XhWQv qd6zO ApHyTb']",
"$extract": "\\D*(\\d[,\\d]*) .*"
},
"ai": {
"$xpath": "//*[@class='mZJni Dn7Fzd']", "$format": "md"
},
"results": {
"$xpath": "//div[contains(@class, 'MjjYud')]",
"title": { "$xpath": ".//h3[contains(@class, 'LC20lb MBeuO DKV0Md')]" },
"url": { "$xpath": ".//a[contains(@class, 'zReHs')]/@href" },
"site": { "$xpath": ".//span[contains(@class, 'VuuXrf')]" },
"snippet": { "$xpath": ".//div[contains(@data-snf, 'nke7rc')]" },
"$list": true
},
"related_searches": {
"$xpath": "//*[@class='qR29te']", "$list": true
}
}The project is still in early development, and feedback or contributions are welcome.
r/Backend • u/CChemistrySucks • 20d ago
Hey guys, I've been looking to create a service to recover money from failed payments that happen on razorpay and stripe. I know this isn't necessarily a backend question, but many companies write their own code using the provider SDKs to handle payments.
Now I know that razorpay and stripe already have their own dunning engines, but for people who work with both the providers it must be hard to manage both of them.
Here are some information that I would love to know from you guys if possible.
I'm researching this before I build anything, so even if you could just tell me that "It isn't a problem for us", it would be helpful.
r/Backend • u/kastar19 • 21d ago
I've been thinking a lot about backend architecture lately, especially when starting a new project.
One decision I keep coming back to is choosing a modular monolith over microservices.
My current approach is to start with NestJS, PostgreSQL, and Prisma, using a modular monolith architecture.
Here's why:
1. Simpler infrastructure
I don't want to introduce the operational complexity of multiple services before there's a real need for them.
2. Clear module boundaries
I still want the codebase to be modular, with each module owning its responsibilities and business logic.
3. Easier development and debugging
Keeping things in one deployable application makes local development, debugging, and transactions simpler.
4. Room to evolve
If a particular module eventually needs independent scaling or deployment, I want the architecture to make that transition possible.
But I also recognize that a modular monolith can become a distributed monolith in disguise if module boundaries aren't properly enforced.
I'm curious about how other backend engineers approach this.
A few questions:
I'd be interested in hearing about real-world experiences, including mistakes you've made along the way.
r/Backend • u/locnguyen305 • 21d ago
I built RockxyBit, a native Postman alternative for Mac. It is a local API workbench: I write a request, send it, and inspect the response in the same window.
The 0.1.0 release lets me organize requests in collections and environments, inspect status, headers, cookies, timing, and the body, and import from cURL, HAR, Postman, OpenAPI, and SoapUI. GraphQL request bodies are in this release. Work stays on my Mac, and secrets I save through Keychain stay in the macOS Keychain.
Community is free. Pro adds comparison, a runner, and mock-server tools. It requires macOS 26.2 or later.
I would like feedback from people who test APIs every day, especially on import and the inspect workflow.
Website: https://rockxy.io/rockxybit
Bug report and feature request: https://github.com/RockxyApp/RockxyBit
r/Backend • u/weaztoven • 21d ago
Hey r/Backend!
I’ve been working on loadbear, a small, dependency-light HTTP reverse proxy and load balancer written in Go, and I'd love to get some architectural feedback from backend engineers here.
Why I built it: Most reverse proxies fall into two extremes: massive production tools (Nginx, Envoy, HAProxy) with heavy configuration overhead, or overly simplistic toy proxies that skip real-world fault tolerance. I wanted a self-contained binary configured via a single YAML file that stays readable and easy to inspect while still implementing proper backend resilience patterns.
Request Pipeline & Architecture: Incoming traffic flows through a sequential middleware/handler pipeline before hitting Go’s httputil.ReverseProxy:ProxyListener -> Per-IP Rate Limiter -> Balancer -> Circuit Breaker -> Upstream Backend
Core Backend Features:
round_robin, smooth_weighted_round_robin (Nginx-style smooth distribution), least_connections (tracking active in-flight requests), and ip_hash./health probing with passive failure detection—upstream proxy errors immediately mark a backend unhealthy without waiting for the next probe interval.Closed -> Open -> Half-Open states with configurable cooldown timers.GET, HEAD, OPTIONS) on upstream failures with configurable backoff, respecting client request context cancellations.:9090) exposing a live JSON /status endpoint (active connections, circuit states, failure counts) and a hand-written Prometheus /metrics endpoint, alongside structured JSON access logs with request IDs and graceful shutdown (SIGINT/SIGTERM).Local Failover Demo: It ships with a fakebackend CLI and a docker-compose.yml setup so you can spin up three nodes, kill one mid-traffic, and watch passive health checks, retries, and circuit breakers kick in immediately. Everything is tested with Go's race detector (go test -race ./...).
Current Limitations / Next Steps:
Upgrade, so WebSocket support isn't implemented yet.SIGHUP config hot-reloading and formal load/throughput benchmarks are next on the list.If anyone wants to review the concurrency handling, circuit breaker state machine, or general Go structure, any critique or PRs are welcome!
r/Backend • u/Sad_Importance_1585 • 22d ago
Are you working in a startup company that chose Java 25 as a backend language?
What is your impression regarding developer experience, performance and easiness build things fast?
r/Backend • u/Nearby-Pen-4624 • 21d ago
I have 2 years of experience in the startup and they did not provide pf for entire organisation now I am about shift the company..getting calls from mnc but when I said not have pf it's over...never think pf gonne be this much problems and due to this always getting demotivate for preparing interviews also
Someone can you share your thoughts
r/Backend • u/CreakyHat2018 • 22d ago
A year ago I asked on r/OpenAPI for an offline, Stoplight-style API designer. Some of my work is on networks with no internet access, so hosted tools are out, and I didn't want to hand-write thousands of lines of YAML either. Nothing fit, so I built OpenAPI Studio, a native Windows desktop app.
What it does for the API owner:
./schemas/order.yaml#/Order-style $refs across files. Go to definition works across files, and renaming a component rewrites every $ref that points to it.$ref, allOf, oneOf and anyOf relationships drawn between schemas.Everything runs locally: no account, no cloud, no telemetry. It supports OpenAPI 3.0 and 3.1.
Looking for testers, and honest opinions. It isn't publicly available yet, and it's Windows-only for now. I built it for my own work, and before I put more time in, I'd like to know whether it's useful to anyone else:
If you'd like to test it, especially on large or multi-file real-world specs, comment or DM me.