SShortSingh.
Back to feed

System design for mobile backends: what matters at a few thousand users

0
·4 views

Most system design advice targets huge services like Twitter, which is of little use to a backend serving a few thousand users. At that scale, the decisions that matter most are the API contract with the app, safe retries and offline sync, a sensible relational data model, and basic caching, background jobs and monitoring. The author argues that sharding, multi-region deployments and microservices can wait until measured load requires them, since one well-run server with a well-maintained PostgreSQL database can handle a lot. A back-of-envelope estimate shows that 10,000 daily active users making 100 calls each averages about 12 requests per second, peaking near 60. The author recommends prioritising the API, idempotent writes and data model, which are costly to change once apps ship, and using existing databases for job queues before adding Redis or Kafka.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Thanksgiving-Week Gig Delivery Pay Looks Better Than It Is Once Miles Are Counted

A gig-economy expense tracker creator argues that app payout totals overstate what Thanksgiving-week delivery shifts actually earn drivers. Closed restaurants and widely spaced open ones stretch the miles between orders, and grocery batches and retail deliveries can involve long drives and empty return trips. The article offers a "true profit" formula that subtracts mileage costs from gross pay, using a sample DoorDash shift where the effective hourly rate fell from about $21 to about $10. It recommends setting minimum per-mile and per-hour thresholds, logging every shift, and setting aside tax money from true profit rather than gross income.

0
ProgrammingDEV Community ·

Event 4776 NTLM Failures: Decoding Error Codes, Source Workstations and Account Triage

A helpdesk question about repeated Event 4776 failures on a domain controller prompted this guide to NTLM credential validation logging. Event 4776 records that an NTLM validation occurred on the authoritative computer, which is the domain controller for domain accounts, and includes only the account, source workstation and error code. The guide recommends first reading the error code, since values like 0xC0000064 indicate a bad username and 0xC000006A a bad password, and noting that workstation unlocks can also trigger failures. It provides a PowerShell script to pull and group 4776 events from each domain controller over 24 hours, and advises checking the Audit Credential Validation policy if no events appear. Finally, it explains how failure patterns by account and workstation may point to stale service passwords, lockout cascades, scanners or enumeration.

0
ProgrammingDEV Community ·

Hardening SSH on a fresh Ubuntu 24.04 or Debian 12 VPS: a step-by-step checklist

A newly provisioned VPS with a public IP typically faces automated SSH password guessing within minutes, since bots scan the entire IPv4 range continuously. A checklist published for Ubuntu 24.04 and Debian 12 walks administrators through a roughly hour-long hardening process in a deliberate order. Its key advice is to keep an existing SSH session open and test each change from a second terminal before closing the first. The guide also flags distribution quirks, such as socket-activated SSH on Ubuntu and the absence of auth.log on Debian, and explains that cloud-init drop-in files can silently override later settings. It further covers creating a sudo user, enabling the firewall with rate-limited SSH, and configuring fail2ban to read the systemd journal.