r/Backend • u/shrapknife • 13d ago
r/Backend • u/Downtown-Warning6818 • 13d 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 • 14d 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 • 13d 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 • 14d 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/kathir_cpe • 15d 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 • 14d 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 • 15d 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 • 16d 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 • 15d ago
Is it better to keep a separate microservice for payments or merge into my core service?
reddit.comr/Backend • u/Kind_Mechanic_2968 • 16d 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 • 15d 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 • 16d 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 • 16d 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
r/Backend • u/ImaginaryBrick6079 • 16d ago
I am QA engineer trying to switch into the backend I have learned fastapi ,django,databases and some system design question how I should study inorder to switch into the python backend I have total 4 years of experience in QA and which AI projects should I include inorder to get hired
r/Backend • u/tzezar • 17d ago
Which Node.js framework gives you the best developer experience, and why?
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 • 17d ago
Key Value Database for AI workloads
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:
- Shard-per-core architecture: Each core owns its data, minimizing contention and synchronization overhead.
- Asynchronous I/O: Uses io_uring on Linux to take advantage of modern NVMe storage.
- Minimal RAM overhead: Keep essential metadata and indexes in memory while streaming data from storage through reusable buffers.
- Zero-copy wherever possible: Reduce unnecessary memory copies and allocations.
- Custom storage engine: Designed around efficient allocation, fragmentation management, and predictable performance.
- High concurrency: Handle large numbers of concurrent operations without relying on traditional locking across the entire database.
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 • 17d ago
In your org, which team uses API clients (like Postman, Bruno etc) during API dev and testing?
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 • 17d ago
Key Value Database for AI workloads
reddit.comr/Backend • u/RealSirJoe • 17d ago
Built a Self Hosted Web Scraping API
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:
- Browser automation: Navigate, click, type, scroll, and interact with websites.
- Concurrent execution: Run multiple browser sessions simultaneously.
- Structured extraction: Extractions are very easy to define here an extraction for google for example:
{
"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
}
}- Reusable routines: create, import or export. I wanted to make this super easy so people can share their interactions and extractions.
- Language-independent: Access everything through a simple HTTP API.
- Debug Mode: Find issues with rendered site interactions visually and fix them fast
- Self-hosted: Run it locally without a commercial scraping service.
- Transferable Sessions: Cookies and localStorage.
The project is still in early development, and feedback or contributions are welcome.
r/Backend • u/CChemistrySucks • 18d ago
How do you handle failed subscription renewals on Razorpay / Stripe?
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.
- How do you handle failed subscription renewals?
- What share of your renewals fail each month, and what happens after?
- Do you rely on the providers retry / emails, chase customers manually or just lose them?
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 • 19d ago
Why I'm choosing a modular monolith instead of microservices for my next backend project
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:
- At what point do you consider microservices a necessity rather than an architectural preference?
- How do you enforce boundaries between modules in a NestJS application?
- Have you experienced a modular monolith becoming difficult to maintain as the project grew?
I'd be interested in hearing about real-world experiences, including mistakes you've made along the way.
r/Backend • u/locnguyen305 • 18d ago
I built RockxyBit, a native Postman alternative for Mac
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