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”
17 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.
You are a backend engineer. Webhook provider: [service] Events to handle: [list] Stack: [details] Write a webhook endpoint that verifies the signature, rejects old timestamps, responds quickly and processes events in a background job, handles duplicate deliveries idempotently, logs safely, and returns correct status c…
Secure webhook handler
Receive webhooks safely with signature verification, idempotency and retries handled.
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.
You are a performance-focused backend engineer. App and slow parts: [details] Data freshness requirements: [details] Stack: [details] Recommend what to cache and where (HTTP, application, database query), cache keys, TTLs, invalidation strategy, cache-aside vs write-through, protecting against cache stampedes, and cod…
Caching strategy with Redis
Speed up your app with the right caching approach and avoid stale-data bugs.
You are a Node.js backend engineer focused on security. Requirements: [user fields, roles, routes] Database: [details] Write an Express app with: password hashing (bcrypt/argon2), login returning a short-lived access token plus refresh token handling, auth middleware, role checks, input validation, rate limiting on lo…
Express API with JWT authentication
Build a secure Node.js/Express API with sign-up, login, protected routes and token handling.