r/Backend • • 4h ago

How do you integrate email verification into a react signup from using an API?

4 Upvotes

I'm building a React signup page with react-hook-form and a Node backend. I want to check email addresses using a third-party API before the form gets submitted, but I don't want to expose the API key or make the signup process feel sluggish.

Would it be better to trigger validation on blur through the backend, or wait until the user submits the form?


r/Backend • • 7m ago

AI review

1 Upvotes

As most of the companies nowadays, we are heavily using AI for development now. As this is something somewhat new, there are a lot of doubts and experiments on the workflow with AI.

In the past 1 or 2 (MAX) rounds of review was enough. Now it can easily reach 5 rounds or more (sometimes to fix nits or very rare/narrow gaps, but that's not the point).

No matter how many code reviews I do by myself using AI, my college will find something else when they run their AI code review.

Do you have any explanation for that? Do you experience the same? How can't I (AI) catch these gaps beforehand?


r/Backend • • 18h ago

How much Redis do you actually know and how regularly do you use it?

12 Upvotes

I was considering taking the official associate developer certification but from what I hear the exam goes way deeper than the trivial use cases.

Would appreciate hearing your experiences with Redis (and possibly their certs) to decide whether or not to take the exam and how much time I should invest in learning it.


r/Backend • • 19h ago

When do you consider a backend “ready” instead of just “healthy”?

5 Upvotes

I keep seeing these two checks treated as the same thing, but they answer different questions. A process can be alive, accept a TCP connection, and even open its database while still being unsafe to serve real traffic because a required table is missing, a migration is incomplete, a foreign-key relationship is broken, or stored JSON no longer matches what the application expects. I’m leaning toward keeping health checks very cheap and process-focused, while readiness verifies the structural state the application actually depends on. How do you draw that line in your systems?


r/Backend • • 10h ago

How to enforce data consistency in payment transactions

1 Upvotes

A typical scenario is when you submit a request (e.g. to initiate a payment) and receive a response (e.g. as a webhook) a little while later.

Based on what I've seen in fintech apps, it's usually handled with workers that mark a transaction as pending and then handle the state if it's not consistent.

There a good post on distributed transactions this: https://www.reddit.com/r/fintechdev/comments/1xp72r3/an_implementation_of_distributed_transaction_with/

Is Try-Confim-Cancel applicable here? It looks like there is no established approach to this in software engineering and FinTech in general. I was told to use AWS step functions but it looks like every app comes up with its own architecture. If your app works with payments, how do you handle long-running transactions that span multiple systems and guarantee data consistency?


r/Backend • • 11h ago

How do you folks answer database choice for system design questions?

Thumbnail reddit.com
1 Upvotes

r/Backend • • 12h ago

How do you cleanly scale down WebSocket servers

1 Upvotes

I'm trying to understand how this is handled in production. Since WebSocket servers are stateful and hold long-lived client connections while consuming from Kafka, how do you scale down cleanly without dropping messages, creating reconnect storms, or causing messy consumer group rebalances?

​Curious how you coordinate draining connections, committing offsets/leaving the consumer group, and handling graceful shutdowns in practice.


r/Backend • • 21h ago

Hot-reloading TLS certs without a restart: the two-rename race I didn't think about

0 Upvotes

I've been building a web server for V (viltrum) that can do TLS itself instead of always sitting behind a proxy. One thing I wanted was cert renewal with no restart and no SIGHUP, so certbot just drops new files and nothing else has to happen.

The first idea was naive: watch the cert file, reload when it changes. That breaks in a dumb way. Most tools write the new cert and the new key as two separate renames. For a moment the cert on disk is new and the key is still the old one, so if you reload right then you get a mismatched pair and every new handshake fails.

What it does now:

  • each worker checks both files once a second (inode, size, mtime). Inode is in there because certbot and most tools rename a new file onto the path instead of rewriting it, and the files are opened by path every time.
  • when something changed, it loads the pair and checks the key actually belongs to the cert. If it doesn't, it skips it and keeps serving the last good pair. The failure is logged once and retried when a file changes again. So the gap between the two renames just gets ignored.
  • the cert is picked per handshake, so live connections keep their session and only new connections see the new cert, within about a second.
  • at startup the same check runs before any socket opens, so a wrong path or a key that doesn't match fails right away instead of at the first request.

Side note since I was in there anyway: I wrote the common TLS 1.3 handshake myself (X25519 + RSA-PSS, key schedule checked against the RFC 8448 trace) and it takes about half the CPU mbedtls did, 3.7 ms vs 7.4 ms per handshake on a small VM. Everything else (TLS 1.2, ECDSA certs, other groups) still goes through mbedtls.

Things I left out on purpose: ACME inside the server (use certbot and point it at the files), mTLS, encrypted keys. Session resumption is off for now too, every connection does a full handshake.

Curious how you all handle this. Do you reload in-process, or let the proxy deal with it and never think about certs in the app? And is polling once a second fine, or is inotify worth the extra edge cases?

Repo: https://github.com/Tuntii/viltrum (docs/tls.md has the details)


r/Backend • • 1d ago

Bad at LeetCode/CF problem-solving and don't enjoy it—can you still become a backend developer, and how?

29 Upvotes

I’m terrible at competitive programming and LeetCode-style puzzles, and honestly I don’t enjoy grinding them, yet I want to get into backend development. How much does being weak at LeetCode/CF actually block someone from becoming a backend developer, and what skills or habits actually make you good at backend engineering when standard DSA puzzles aren't your strength? Be real about what matters for getting hired and succeeding in backend roles.

I am having 6-10 months before appearing for job interviews.


r/Backend • • 23h ago

The default for an outbound HTTP call is often "wait forever": a 20-line experiment and a timeout-budget rule

0 Upvotes

A backend habit I think is worth checking in any codebase: does every outbound call have a timeout? As far as I know from the docs, the Python requests library has no default timeout, and urllib blocks indefinitely unless you pass one, so a server that accepts the connection and then goes silent can hold your thread (or worker, or connection pool slot) for as long as it likes. Other languages and clients have their own defaults, so it's worth checking yours.

A small experiment to see what a timeout buys you. A local server that accepts connections and never replies:

import socket, threading, time, urllib.request

srv = socket.socket()
srv.bind(("127.0.0.1", 0))
srv.listen(5)
port = srv.getsockname()[1]

def accept_and_stay_silent():
    conns = []
    while True:
        c, _ = srv.accept()
        conns.append(c)          # accept, never reply

threading.Thread(target=accept_and_stay_silent, daemon=True).start()

t = time.time()
try:
    urllib.request.urlopen(f"http://127.0.0.1:{port}/", timeout=1.5)
except Exception as e:
    print(type(e).__name__, e, f"after {time.time() - t:.1f}s")

Output on Python 3.13.18:

TimeoutError timed out after 1.6s

With requests 2.34.2 and a (connect, read) timeout tuple:

import requests
requests.get(f"http://127.0.0.1:{port}/", timeout=(1, 1.5))
# ReadTimeout after 1.5s

I did not run the no-timeout version, since it would simply wait. That's the point.

A "timeout budget" rule I'd suggest (opinion):

  1. Every outbound call gets an explicit timeout. Make it a lint rule or a thin wrapper, so no one has to remember.
  2. Separate connect and read timeouts where your client supports it. A connection that can't be established should fail fast, while a slow but alive response may deserve more time.
  3. The sum of downstream timeouts should fit inside your own deadline. If your endpoint promises an answer in 2 seconds, three sequential calls with 5-second timeouts can't keep that promise.
  4. Retries multiply it. Three attempts at 5 seconds is up to 15 seconds, plus backoff, so budget total time, not just per attempt.

Related things to decide:

  • What the caller sees on timeout: an error, a cached value or a degraded response.
  • Whether a timed-out request may have succeeded on the other side. For non-idempotent operations, a retry after a timeout can duplicate the effect.
  • Whether you propagate a deadline to downstream calls instead of giving each its own independent timeout.

Limits: the experiment uses one local server and one failure mode (accept and stay silent). Real networks fail in other ways, such as DNS delays, slow TLS handshakes and slow streaming bodies, and some timeouts apply per operation rather than to the whole call. Check what your HTTP client's timeout actually covers.

Do you enforce timeouts with a wrapper, a lint rule, or convention? And how do you pick the numbers?


r/Backend • • 1d ago

Is leetcode still alive ? i dont like it.

13 Upvotes

seriously we got Agentic AI Era and still companies require leetocode, wasn't AI supposed to make writing code easier ?, i like to design systems i like to invent new tools and make real world application, not sorting algorithm, i am the kind of person to learn things on the fly i dont remeber code most of my code are AI assisted, the only thing iam strong is in decision making and system design. how do i even explain this to the company,

during the interview process, how practical would it be for me to just say straight 'i dont like leedcode and algorithms i can show you my work or assign me some real task i can do those'


r/Backend • • 2d ago

Rust vs Go for web app backend

37 Upvotes

In my company having node js as backend facing issues like vulnerability update each week it making hard to maintain prod to update. So how in your companies handling this difficulty.

Planned to migrate from node to go. What does your suggestion on this. Rust is taking entire trend now. Is Rust is better then go for web apps?


r/Backend • • 1d ago

Why you shouldn't do application-level sharding

Thumbnail
planetscale.com
0 Upvotes

r/Backend • • 1d ago

Who owns the budget for API tooling in your org?

0 Upvotes

We’re revamping our tooling and processes for API development and testing in my org, and want to understand which teams typically own these tools, including who holds the budget for them (Devs, QA or a central team).

I’ve seen teams handle this very differently. In some, backend devs pick and pay for API clients like Postman or Insomnia; in others, QA or a platform team drives the purchase.

Would love to hear in the comments who makes the call in your org, and whether the people using the tool are the same ones paying for it.


r/Backend • • 1d ago

As a DevOps/Integration engineer, which teams should I involve before launching a new customer-facing web platform?

Thumbnail reddit.com
0 Upvotes

r/Backend • • 2d ago

[CAP Theorem] If I choose consistency and return 500s when my app can't reach the database, how is that "partition tolerant"?

Thumbnail reddit.com
0 Upvotes

r/Backend • • 1d ago

Backend architecture for the already Frontend website I made before ,sits on free Vercel for now

0 Upvotes

Hey guys Please help with your answer..

once about 4-5 months back I made an simple Frontend website for an Clothing Brand in India and as client wanted in budget so deployed in vercel and all...

NOW THE CLIENT WANTS A COMPLETE E-COMMERCE project connected to hardcoded Frontend

Client wants an proper Google email login ai chatbot for the Customers to talk about the products delivery status order details and all whatever details...

She wants an email confirmation to customers,

Automatic Delivery Schedule by the delivery partners

So help me with An architecture which is cost efficient secure reliable and in budget and NOT COMPRISING the necessary requirements for the Clothing Brand's Ecommerce Website

#softwareengineer

#shopify

#Webdevelopment

#ecommerce

#backend

#fullstack

#devops

#aws

#vps

#ComputerScience

#Google

#Microsoft

#Nvidia

#gmail #email

#secure

#realiableandall


r/Backend • • 2d ago

We have updated ThunderDB website.

Thumbnail
gallery
5 Upvotes

Most of you were thinking that our previous site was slop. That was fair criticism. We've been spending most of our time building the database engine, so the website was something we put together in a day because of the response we were getting from the reddit community.

Our old site: https://thunder-db.com/

But we realized that if we're putting this much effort into engineering a database from scratch, it should depict the same level in our website. so instead we coded the website ourself.

Our new website: https://thunder-db.si/

Would love to hear what you think of the redesign. I am also pasting the benchmark compared to Redis 8


r/Backend • • 2d ago

How do you customize artillery load tests and create a more realistic simulation?

Thumbnail reddit.com
1 Upvotes

r/Backend • • 3d ago

AI-Driven Spring Boot Technical Interview – Cursor & Claude Tips?

9 Upvotes

I have a 60-minute final technical interview focused on Java and Spring Boot. The company allows AI-assisted development using Cursor and Claude. They’ll provide an existing codebase and ask me to implement features, update existing functionality, and fix bugs based on requirements.

For anyone experienced with this approach, how would you use Cursor and Claude effectively? Any recommendations on Cursor Skills, best models for understanding complex codebases vs. fixing small bugs, or practical prompts/workflows beyond generic “add this feature” or “fix this bug” instructions?

Would appreciate any real-world tips!

In short: They would more evaluate me based on how AI usage.


r/Backend • • 3d ago

Share Private Client Demos With Six-Digit Email Codes

Thumbnail
instawormhole.com
2 Upvotes

r/Backend • • 4d ago

FASTAPI

19 Upvotes

hi i wanna learn fastapi for ml projects, dont know anything about backend so what all do i need to know like what topics, any playlist you can recommend with backend basics to a point where i can finally start to learn fastapi?


r/Backend • • 3d ago

Feed back on the architecture for my project idea

5 Upvotes

So i am making an excel/CSV file processing system .

It's a project for me so I can get more into the backend stuff . Distributed system, system design decisions and creating+ learning AWS architecture

If anyone would like to get more idea about it or may be someone who is experienced in this thing I would like to share my project idea and all

Or may someone wants to work on this project.

Thanks for my time