Implement simple feature flags in [stack] without a paid service. Support on/off, percentage rollout and per-user overrides, store flags in [storage], and show how to use a flag in code and remove it cleanly later.
Results for “backend”
14 prompts
Add a background job queue to my [framework] app for tasks like [tasks]. Recommend a queue library, show job definitions, retries with backoff, failure handling, scheduling, and how to run workers in production.
Background job queue
Moves slow tasks like emails and reports out of web requests.
Set up a [Supabase/Firebase] backend for [app]. Include the data model, authentication, row-level security or security rules so users only access their own data, example queries from the client, and storage for user uploads.
Firebase or Supabase backend setup
Sets up auth, database and security rules for a small app.
Implement [infinite scroll / cursor pagination] for a list of [items] in [framework] calling [API]. Handle loading and error states, avoid duplicate requests, preserve scroll position, and include the backend query for cursor pagination.
Build a file upload feature in [stack]. Show a progress bar, validate file type and size on client and server, store files in [storage], generate safe file names, and return a URL. Explain security considerations.
File upload with progress
Secure file uploads with progress bars and validation.
Implement a real-time [feature, e.g. chat / live notifications] using WebSockets in [stack]. Include server setup, client connection with reconnect logic, message format, authentication, and how to scale beyond one server.
WebSocket real-time feature
Adds real-time updates like chat or live notifications.
Design a GraphQL schema for [domain, e.g. a blog with posts, authors and comments]. Include types, queries with pagination, mutations, input types, and example resolvers in [language/framework]. Note how to avoid N+1 queries.
Write a GraphQL schema and resolvers
A GraphQL schema with queries, mutations and resolvers.
Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.
Python FastAPI endpoint
A typed FastAPI endpoint with validation and error handling.
Act as a backend engineer. Stack: [details] Endpoints to protect: [list] Limits wanted: [e.g. 100 requests/minute per API key, 5 login attempts per 15 minutes per IP] Infrastructure: [single server / multiple instances / Redis available] Implement rate limiting (explain fixed window vs sliding window vs token bucket),…
API rate limiting
Protect your API from abuse with rate limits per user, IP or API key.
Act as a QA-minded backend engineer. Framework and test tool: [e.g. Jest + Supertest, pytest + httpx, PHPUnit] Endpoints: [list with expected behaviour] Auth: [method] Database setup: [test DB, fixtures] Write integration tests covering success cases, validation errors, auth failures and not-found cases, with setup/te…
Integration tests for an API
Test your API endpoints end to end, including the database, auth and error responses.
Act as a backend developer. Framework/tool: [Laravel, Django, Rails, Prisma, Alembic, raw SQL] Database: [PostgreSQL/MySQL] Change needed: [e.g. add column, rename table, split a field] Table size: [rows] Write the up and down migration, any data backfill, how to deploy it safely without downtime (e.g. expand-and-cont…
Write a database migration
Create safe, reversible migrations for schema changes, including data backfills.
Act as a senior engineer who mentors candidates. Target role and level: [e.g. mid-level backend engineer] Target companies: [types] Interview date: [date] Strengths and weak spots: [details] Hours per week: [hours] Create a study plan covering data structures and algorithms (topics by priority), system design, languag…
Technical interview prep plan for developers
A week-by-week study plan for coding, system design and behavioural rounds, tailored to your target companies.