SShortSingh.
Back to feed

Mobile app launch sale overwhelmed Postgres, forcing an engineer to fix connection limits

0
·27 views

During the first morning of a marketing sale, a company's newly launched mobile app drove a surge of orders that exhausted the database's connection limit. Web, admin and app services all began failing with database connection errors, and the support engineer on duty initially responded by raising connection limits. That change backfired, pushing database CPU to nearly 100% as too many concurrent queries competed for limited processing power. The engineer cut the application's connection limit to 20 and routed all traffic through PgBouncer in transaction mode, restoring service about 75 minutes after the first failure. Database CPU now stays below 45% at peak, with average API response times under 150 ms.

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 ·

How Enterprises Implement On-Screen Watermarks and Screen Recording Controls on Endpoints

A technical guide explains how companies deploy visible screen watermarks and screen capture controls on corporate devices to deter data leakage through photos and recordings. The watermarks are typically drawn by an endpoint agent as a transparent, click-through overlay that displays the user's identity and a timestamp. Recording control relies on OS-level mechanisms such as macOS TCC permissions, Windows capture APIs, and AppLocker or WDAC rules, along with peripheral restrictions on capture hardware. The article notes that watermarking is a reliable rendering-layer technique, while recording control is more powerful but more sensitive to operating system changes. Both measures are presented as parts of a layered security approach aligned with frameworks such as NIST SP 800-53.

0
ProgrammingDEV Community ·

Who Really Controls Your Business Website? A 30-Minute Ownership Check

Many business owners assume paying for a website means they control it, but access often sits with a former freelancer or developer. Losing control can mean being locked out of the domain, business email and Google listings. The domain is the most critical asset, so owners should confirm the registrar, the account holding it, the renewal date and the contact email. Hosting, website admin access, backups and source code should also be checked so the business can get in or hand access to someone new. Accounts like Google Business Profile, Search Console, ad accounts and social pages should have business-owned owners or admins as well.

0
ProgrammingDEV Community ·

Hidden Costs of Dev Environment Setup Go Beyond Lost Minutes

A developer argues that the visible time spent on environment setup is only a small part of its real cost. Leftover artifacts like node_modules, virtual environments, build caches, and Docker layers pile up and can exceed the storage of the active project. Local environments also decay over time as OS and package updates break older projects, forcing costly repairs when returning to old work. The setup friction can further discourage small experiments and exposes machines to risks from running unreviewed code. The author promotes HYNA-Stage, an ephemeral cloud sandbox, while acknowledging its drawbacks, including the need for internet access, cold-start delays, and temporary storage.

0
ProgrammingDEV Community ·

Gamification in Indian app onboarding: which mechanics help and which to drop

Many Indian consumer apps already borrow game-style elements such as progress bars, reward cards and streak counters during onboarding. The article argues some of these genuinely move new users toward their first useful action, while others add noise, slow flows on budget phones, or encourage chasing rewards over learning the product. It recommends first defining the single action that turns a sign-up into a real user, then judging every mechanic by whether it advances that step. Progress indicators should be honest and save state, guided low-stakes first actions help users learn the core loop, and predictable rewards tied to user benefit work better than random ones. The piece also cautions against day-one leaderboards, heavy celebration animations on weak networks, and spin-the-wheel mechanics that may raise gambling and regulatory concerns.