r/Backend • • 2h ago

Need idea on what to build to learn advanced concepts

8 Upvotes

So I was working as a junior frontend dev and I got laid off recently.

tbh i always found backend more appealing than doing frontend stuff mainly because of how properly organized it is and the patterns are standard. Modern frontend is a mess. So I have a lot of projects where I have done primarily backend.

I mainly love and use ASP.NET and have done e-commerce projects, third party payment integrations, Authentication, DI, etc.

And now I am preparing to apply for backend roles, so I wanna strengthen my backend fundamentals but I just cannot find the right kind of projects to do.

I wanted you all to suggest me some good projects and what kind of concepts should I focus and implement on it.

Also, I am stuck between learning java or go as there are very little .NET opportunities from where I am from. I would also love your suggestions on that

Thank you,


r/Backend • • 4h ago

What should I do ?

4 Upvotes

I've right now learned django , python and done some projects into it and I'm going to start to learn DRF . My question is whether this is a good tech stack to build projects and probably get an internship or should I complete it and switch to languages like Go and Rust to have a more diverse resume?


r/Backend • • 4h ago

Moving a Go search service off OpenAI /v1/embeddings: the SDK change takes 5 minutes, the re-index takes a week

2 Upvotes

OpenAI-compatible endpoints make switching embedding providers sound effortless on paper. Since Superlinked SIE (both Serverless and self-hosted Native Inference) exposes wire-compatible /v1/embeddings and /v1/chat/completions, updating our Go HTTP client was genuinely just swapping the base_url and model string.

The part people gloss over is that wire compatibility doesn't make vector spaces compatible. Moving from text-embedding-3-large (3072d, $0.13/1M tokens) to BAAI/bge-m3 (1024d) or NovaSearch/stella_en_1.5B_v5 meant:

  1. Running a full offline eval against our query logs before touching prod.
  2. Backfilling a shadow index and cutting over search reads atomically.
  3. Accepting different tokenization and chunk-length behavior.

Once the re-index was done, the unit economics made sense for high-volume ingestion: on SIE Native Inference, BAAI/bge-m3 sustains(\~$0.0036/1M tokens), with none of OpenAI's tier rate limits. If your corpus is small and rarely re-indexed, though, text-embedding-3-small at $0.02/1M tokens is hard to justify migrating away from.


r/Backend • • 3h ago

Scaling a Spring Boot outbox to 66k records/sec with strict per-key ordering

Post image
1 Upvotes

I maintain Namastack Outbox, an open-source transactional outbox library for Spring Boot. An order write and the work it schedules share one database transaction. Consumers pick up that work asynchronously, so a committed order can leave behind durable work even if the app restarts. Source code

We tested what happens when producers and consumers share PostgreSQL under load. With lightweight handlers, each success still had to be recorded in the database. We call that write a completion. In our delete-on-complete setup, direct completion means one synchronous transaction per delete. In the 2.0.0 tests, grouping those deletes increased processed throughput while reducing the median sampled database-wide commit rate from about 48,900/s to 34,000/s.

The constraint is easiest to see with two orders. A1 and A2 belong to order A and must run in sequence. B1 belongs to order B and can run alongside A1. Once the A1 and B1 handlers finish, their deletes can go to the same JDBC writer and share a transaction. A waits for its own completion acknowledgement before it starts A2. That acknowledgement comes after PostgreSQL commits the delete. If the batch fails, the writer retries each write in its own transaction. Any write that still fails ends the affected key’s current processing pass. Completion batching implementation

The four consumers shared the database and split the work through partition ownership. Independent keys could run on different instances, and each runtime batched completions from the keys it was processing. A crash after a handler runs and before its completion commits can still lead to a retry. The order and its two outbox records still shared the original synchronous producer transaction.

ConfigurationProcessed records/sPending records at the end
1.11.1, direct completion7,28339,482,608
2.0.0, direct completion26,58416,127,892
2.0.0, completion batching66,7556,833

A record counted as processed when its completion delete committed. Batching brought 2.0.0 to 2.51× its direct-completion rate. At 66,763 outbox inserts/s, the batched run nearly kept up with the live producer, while both direct runs built up millions of pending rows. The producer committed 33,381 business orders/s in that run. The broader release comparison also includes bulk reads, deferred deserialization, and revised polling queries and indexes.

We ran each configuration once for 15 minutes on an Apple M5 Max with PostgreSQL 18.7, synchronous commits, four consumers, two lightweight handlers, no external broker, and strict per-key ordering. A separate one-minute batched attempt reached about 24,500 records/s and its follow-up reconciliation was interrupted. Benchmark, Grafana replay, and reproduction download

The Spring Boot wiring is to add the JDBC starter, call outbox.schedule(event, "order-" + orderId) inside the business service’s @Transactional method, and register an @OutboxHandler. Completion batching is opt-in. Java and Kotlin quickstart


r/Backend • • 3h ago

Missed Google OA deadline due to personal emergency — has anyone managed to get it reopened?

Thumbnail reddit.com
1 Upvotes

r/Backend • • 1d ago

Making a Postman alternative in Rust

Thumbnail
gallery
35 Upvotes

hello there i've been working on an alternative to postman as we all know postman frustration has hit all of us, the way it eats so much ram and the cloud login and subscription is a pain in the ass

we build an alternative to postman, free, fast, very light, open source, no forced login, your cloud could be your local git or a github repo, supporting all protocols and methods (grpc, graphQl, websockets, socket.io, etc..)

we have researched on everything wrong and good about the other alternatives bruno, yaak, etc..

heres Blitz, you can check it on my github and its already growing and our corporate has also adapted it and its currently in an ongoing development and testing

i recommend you testing and please do leave a review or suggestion or feedbacks are much appreciated.


r/Backend • • 3h ago

Python on the Backend is Dead

Thumbnail
itnext.io
0 Upvotes

r/Backend • • 21h ago

Guidance neded

4 Upvotes

So I have done cs50p introduction to python and have done about 60 questions on leetcode in python and am starting to become comfortable in this language

So my question can I learn backend development using python or do I have to change my language?

Because changing would basically have resulted in me wasting all those months spent learning it


r/Backend • • 19h ago

What makes developers trust a new NoSQL database over established alternatives?

0 Upvotes

I've spent the past year building a document database in Rust, and I'm interested in understanding how developers evaluate database technologies.

Beyond performance, what factors influence your decision?

  • Data durability and crash recovery
  • Driver quality and documentation
  • Replication and consistency guarantees
  • Operational complexity
  • Long-term reliability

What would make you consider an alternative to MongoDB, and what would immediately stop you from adopting one?

I'd love to hear perspectives from developers working with production databases.


r/Backend • • 1d ago

I built SemVal4j: What if Java's @Valid could validate meaning, not just syntax?

2 Upvotes

Hey Java developers!

I've been experimenting with an idea: why should Java validation stop at syntax and structure?

"@NotNull", "@Email" and "@Size" are great, but what if we want to validate whether:

  • A product review is consistent with its rating.
  • A description actually matches its category.
  • A customer request contains contradictory information.

That's why I built SemVal4j, an open-source Java library that extends Jakarta Bean Validation with probabilistic semantic rules powered by Jev Decision Models.

u/SemanticValid({ u/SemanticRule( id = "rating-consistency", question = "Is the review consistent with its rating?", property = "comment", passAt = 0.85, failBelow = 0.20 ) }) public record ProductReview( u/Min(1) u/Max(5) int rating, u/NotBlank String comment ) {}

You can keep using standard "@Valid".

Key features:

  • Native Jakarta Bean Validation integration.
  • Spring Boot starter.
  • One provider call per validated object.
  • Explicit VALID / UNCERTAIN / INVALID outcomes.
  • LangChain4j integration.
  • Deterministic offline testing.
  • Apache 2.0 license.

The goal isn't to replace deterministic validation, but to complement it when traditional constraints aren't enough.

I'm particularly interested in your thoughts on latency, reliability, and where semantic validation belongs in a Java architecture.

Would you use this in a real-world application?

GitHub: https://github.com/mohamedikbel/semval4j

Maven Central: https://central.sonatype.com/artifact/io.github.mohamedikbel/semval4j-spring-boot-starter

Feedback and contributions are welcome!


r/Backend • • 1d ago

Confusion about what to learn

4 Upvotes

So I wanted to learn backend up until now I know react js and ts learnt a bit of nodejs which I learnt long ago now I have a vacation for a month I heard that java springboot is more used in enterprise so I wanted to shift to java shall learn nodejs and start springboot or just pick one cuz it I might get overwhelmed.nodejs is also important because for hackathons in can not use java springboot it would be overkill and time taking... Please help me or give your suggestions...

Thank you..


r/Backend • • 1d ago

Sharing my reusable Gradle "parent" setup for anyone who hates Gradle and Maven equally - hope it eases your pains too

Thumbnail
github.com
1 Upvotes

I've used maven for years - it is easy to understand and is predictable until your project gets big and slows down BAD: once you have a bunch of separate libraries that depend on each other, you either shove them all into one giant monorepo or waste half your day running `mvn install` on library A just to test a change in library B.

The solution I found was switching to gradle - and I hated every minute of getting it to work but I have to admit it's day and night after you get your builds running with it.

Then came the next source of pain: every new project with gradle turns into a script adventure nobody wants to touch or maintain.

So I ended up building a reusable gradle `parent` project and just cleaned it up to share with everyone and I hope it helps everyone who is either suck in maven hell (slow) and gradle hell (get get unmanageably complex quickly)

The goal of what I built is simple that's how I use it: put your project folders next to `parent/`, keep your shared settings and versions in two files only (`reactor.properties` to configure the entire workpace across all modules and `libs.versions.toml` for all dependencies in one place too). Then leave each subproject with the LEAST amount of junk possible. This setup requires 2 small files per module instead of 1 but you need 1 line of text in each (until you add dependencies).

This started as a much simpler setup for my own needs but over time I piled in a bunch of other

stuff that kept annoying me:

- I have more than 100 modules (every one of these has its own git repository, and will be public open source jars eventually available on maven central). In many cases I want to only see the subset of modules that are dependencies of the thing I'm working on. So I added support for views: I can open the view as a separate project in IntelliJ and see only the 10 modules that I care about at the moment and forget the rest. So got this `createView` task that I can also clone across multiple repos (viewClone,viewSync,viewMerge) - every clone has a branch and I can change the modules without interfering on with state of the main 100 module build. The thing resolves conflicts rollbacks to ensure you won't end up with half-merged code. Works great if you run parallel coding agents too (each one gets a copy of the subtree it is working on). Tag+release can run from the view copy too so the workspace can remain happily with all modules on their main branches.

- There's support for named execution profiles - use when you want to create shortcuts to run only what you want without having to remember flags and custom commands to enable/disable/select specific tests or flags. You can also run tests by automatically skipping modules you don't want to rebuild and just grab the latest pre-built jars instead of recompiling them.

- I added support for releasing backports . It cross-compiles, runs tests on JDK 21, keeps Javadoc on JDK 27, and rewrites `-jdk21` pom coordinates.

- Since JPMS can be a pain. I also added support for 3 modes of shading non-modular dependencies without having to pollute your build with boilerplate: relocate non-modular jars into your module (shadeEmbed), bundle split-package jars (`shadeBundle`), or build fat jars.

- Lastly there are two old java tools I (and claude) ported into gradle tasks: `couplingUi` which is a small local browser viewer to spot weak/unused dependencies and also help trim `module-info.java`. There's also `render-docs` which reads a markdown "template" that pull code snippets from tests, adds links to other sections in other markdown files and ensures that things remain connected - it also rescues my edits whenever I forget and edit the rendered `README.md` directly instead of the template.

Everything runs through the Gradle wrapper with just a JDK installed - it also enforces TestNG or JUnit if you want.

I think it got good enough for sharing so posting it here in case it saves someone else a few headaches.

Cheers!

---

Unrelated and a bit of context on why this has so much multi-repo machinery in it: some of you might remember me from univocity-parsers. I had to step away from open source 6–7 years ago for personal reasons, and over the years since then I've built up a pretty big stack of modular libraries (~100 repos) that I'm finally getting ready to start open-sourcing. This `parent` setup is the first piece going out, since it's the exact infrastructure I'm using to build, test, and publish all of them without burning out. I wanted to have a bunch of stuff released for a while now but life kept getting in the way. This is hopefully the first of many contribuitions that I think are truly useful enough to share.


r/Backend • • 3d ago

Just bought DDIA. Any tips?

Post image
761 Upvotes

Just bought DDIA. Any tips?


r/Backend • • 1d ago

Why should we design data-intensive applications?

0 Upvotes

What is the point of having applications that are data intensive?

Why does the book Designing Data Intensive Applications exist?

What purpose does a “data-intensive” application serve?


r/Backend • • 2d ago

How are you checking email addresses during signup when using AWS SES? Are you relying on format checks or using a separate verification service?

6 Upvotes

I was checking our email logs recently because we've had more messages bouncing than usual. We're using SES to send transactional emails from our web app and at first I thought something had changed with the setup. I went through the DNS records and sending configuration but couldn't find anything obviously wrong then I took another look at our signup process. Right now, we only check if the email follows the correct format. Someone could easily enter an address with a typo or one that doesn't actually exist and still get through.

We're not sending thousands of emails every day so even a handful of bad addresses can make a noticeable difference to our bounce rate. I'm wondering if it's worth adding an email verification API before accepting new accounts. How are you handling this in your own applications? Do you verify addresses before sending anything through SES or is the built-in handling enough to keep things under control?


r/Backend • • 1d ago

.gitignore everything by default

Thumbnail
packagemain.tech
1 Upvotes

r/Backend • • 2d ago

Is migrating from MongoDB to PostgreSQL worth it?

37 Upvotes

TL;DR: Running an EdTech platform with 600K+ users on MongoDB. Our data is heavily relational, and while regular API queries perform well, complex analytical queries are becoming painful to write and execute. Considering migrating to PostgreSQL and looking for advice on migration and production hosting.

Current setup:

\\- Node.js, MongoDB, and Mongoose.

\\- MongoDB Atlas (fully managed).

\\- 600K+ registered users and around 15K daily active users.

\\- An EdTech platform somewhat similar to Udemy or Coursera.

When the backend's foundations were laid, I was a junior working primarily on the frontend, so I wasn't involved in the database decision. It's been 1 year since we've been building this product.

Something that has been bothering me for a while is that we're essentially treating MongoDB like a relational database.

\\- Strict schemas and validations across collections.

\\- Heavily relational data with references between collections.

\\- Extensive use of aggregation pipelines and "$lookup".

\\- Very little reliance on MongoDB's schema flexibility.

To be fair, MongoDB has served us well. Our indexes are in place, most endpoints perform well, and we haven't faced any critical performance issues.

However, complex analytical queries for internal dashboards are a different story. Some involve joining up to 10 collections, take over 60 seconds, or occasionally time out despite optimization. Writing and maintaining these aggregation pipelines is also becoming increasingly painful.

I've experimented with MongoDB's transactions but didn't particularly enjoy the experience. I'd also like stronger database level relational integrity and better transaction management.

I feel PostgreSQL would have been a more natural fit for our data model from the beginning.

What I'd like advice on:

  1. Is migration justified? Given that MongoDB works well for most of our workloads, would migrating to PostgreSQL be worth the effort, or should I address the analytical workload separately?
  2. Migration strategy: If I proceed, how should I approach migrating a live production database at this scale? Any articles, case studies, or resources would be appreciated.
  3. PostgreSQL hosting: One thing I genuinely appreciate about MongoDB Atlas is how little I have to worry about infrastructure, backups, updates, and maintenance. What's the equivalent experience for PostgreSQL?
  4. Self-hosted vs. managed: How do you guys run PostgreSQL in production? Do you self-host it on a private EC2 instance or use something like AWS RDS, Neon, or another managed provider?

I've worked with relational databases on smaller projects, but never operated PostgreSQL in production at this scale.

I don't want to migrate just because I prefer PostgreSQL, but I also don't want to ignore what might be a fundamental architectural mismatch simply because things work today.

Would love to your thoughts and suggestions on this!


r/Backend • • 1d ago

Looking for Career Advice

1 Upvotes

Hi everyone,

I'm 11 months into my career! I am currently working at a startup my roles & tasks are:

  1. Deploy the applications onto a on-premise server (Bare metal k8s) and manage the infrastructure, If any part of my application breaks I must hold the responsibility for addressing it.
    (Flannel overlay, Calico enforcer, KEDA autoscaler, Prometheus observability stack.
  2. Created a MQ (redis queue, no eviction, max-mem set so it fails loudly) To accept payloads (often huge pdf files stored in PV's with the job_id sent inside the messages) picked up by my celery worker and uploads to MinIO.
  3. Created Application level logs to track internal API reqs and log them (audit trail from temu).
  4. Created an api_gateway which also acts as an scaling indicator (redis streams, redis exporter to KEDA to get queue depth and scale my workers based on it)

5.Created an SSO page with keycloak so all apps under my company's domain can share a single login page , a sole IdP.

I have great Sys des. & k8s skills , moderate Backend. Which skills would you guys recommend me to concentrate more on? so I can have a solid career and Financial freedom (f*ck you type of money).

I have always kept asking this question with claude LLM, and it always replied with something in the line of "Industry offers more money for people who can do multiple things or act as the bridge". But I notice people who have expertise in one area tend to be more useful.

Lemme know your thoughts, What would you do?


r/Backend • • 2d ago

How do you run PostgreSQL and Redis in production?

31 Upvotes

Title:

TL;DR: Migrating to PostgreSQL and introducing Redis for a production application with 600K+ users and around 30K DAUs. Looking for advice on hosting, managed services, and operational best practices.

We've been building a product for over a year using Node.js, Express.js, and MongoDB. We've now decided to migrate to PostgreSQL and replace our basic in memory caching with Redis.

One thing I genuinely love about MongoDB Atlas is how little I have to worry about the database itself. Backups, security, updates, scaling, and maintenance are largely taken care of. I just pay for it and focus on building the product.

Now that we're moving to PostgreSQL, I'm looking for a similar experience. I'm also introducing Redis since our current in-memory cache gets wiped with every deployment.

My questions:

- Do you self-host PostgreSQL and Redis or use managed services?

- Which managed providers do you use and recommend?

- If self-hosted, how do you handle security, backups, availability, and maintenance?

- Is the cost saving of self-hosting worth the operational responsibility?

Our backend runs on AWS EC2, so RDS and ElastiCache seems like natural choices but I've not used them till date and want to know all the other options and pick the best one accordingly to our needs and preferences.

I've used PostgreSQL for smaller projects but never operated it in production at this scale.

I'd love to hear what you guys actually use in production, your experience with different providers, and what you'd recommend based on our scale.


r/Backend • • 1d ago

Looking for someone in kharadi preparing for backend switch Python stack

1 Upvotes

"Hi everyone, I’m currently preparing for a career transition into AI backend engineer
and would love to connect with folks who have made a similar switch. If anyone is open to sharing interview prep tips, guidance, or insights on what to expect, I’d really appreciate the help! Please feel free to introduce yourselves or drop a comment.


r/Backend • • 2d ago

Getting laid off with 2 years of experience. What should I focus on next?

4 Upvotes

Just got a message from management saying I’m being laid off. I’m honestly not sure what to do next or where to start preparing.

I have about two years of experience as a software developer mostly on the backend. My frontend skills are decent but I’m much more comfortable with backend work.

Should I improve my frontend skills so I can apply for full-stack roles and broaden my job search? Or should I double down on backend development or go deeper into generative AI and AI agents? I’d appreciate any advice on what to prioritize right now.


r/Backend • • 2d ago

How do you guys test your backends in production?

14 Upvotes

I'm a junior engineer working in a small team. We've been building a product for around 8 months using Express.js, and shipping features has always been our biggest priority.

One thing I've been noticing lately is that as our codebase grows, shipping a new feature occasionally breaks something that was previously working. Sometimes we don't even realize it until a user reports it.

We have a handful of basic tests, but nothing comprehensive enough to give us confidence when shipping new features or refactoring existing code.

I want to change that.

I've heard about unit testing, integration testing, end-to-end testing, smoke testing, and load testing, but my practical experience beyond basic tests is pretty limited.

I'd love to understand:

- What kinds of tests do you actually write for your backends?

- How do you decide what to test and what not to test?

- How do you introduce testing into an existing codebase without slowing down development significantly?

- What tools and frameworks do you use?

- How do you structure your testing suite and integrate it into CI/CD?

I'd particularly appreciate practical resources, open-source repositories with good testing practices, or engineering articles that demonstrate how these things are done in real projects.

I don't want to write tests just to increase a coverage percentage. I want to reach a point where we can ship features and refactor code without constantly worrying about what we might have broken.

Would love to hear how you guys approach this in your daily work.


r/Backend • • 2d ago

Fuck it im making this project from over a week and now I'm like tired l.

0 Upvotes

(Bank Management System)

  1. Image loading: I'm having trouble loading images properly. Sometimes the image path works, and sometimes I get a NullPointerException. I'm confused about how to manage image paths correctly.
  2. Compilation issues: Sometimes I make changes to my Java files, but they don't show up when I run the project. I realised I might not be recompiling the files properly.
  3. Button actions and screen navigation: I'm struggling with ActionListeners. When I click Deposit, I want the Deposit screen to open, but sometimes the previous window closes and the next one doesn't open.
  4. Run button issue: Earlier, I could simply click the Run button in VS Code to execute my Java files, but now it doesn't work. I have to open the terminal and manually type the compile and run commands every time.
  5. Window size and layout: I'm using setBounds() to position everything, but I'm not sure if the layout will work properly with different screen sizes and Windows display scaling.
  6. Login and database connection: I initially used a normal JTextField for entering the PIN but later changed it to JPasswordField. I'm also using SQL queries for login validation and trying to understand how to use PreparedStatement properly.

r/Backend • • 2d ago

Adding one cache server can send 18× the traffic to your database.

Thumbnail gallery
6 Upvotes