Skip to content

Results for “backend”

17 prompts

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.

ChatGPT
Coding & Development

Feature flag implementation

Ships features safely with gradual rollouts.

0

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.

ChatGPT
Coding & Development

Background job queue

Moves slow tasks like emails and reports out of web requests.

0

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.

ChatGPT
Coding & Development

Firebase or Supabase backend setup

Sets up auth, database and security rules for a small app.

0

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.

ChatGPT
Coding & Development

Infinite scroll or pagination

Efficient list loading for large datasets.

0

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.

ChatGPT
Coding & Development

File upload with progress

Secure file uploads with progress bars and validation.

0

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.

ChatGPT
Coding & Development

WebSocket real-time feature

Adds real-time updates like chat or live notifications.

0

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.

ChatGPT
Coding & Development

Write a GraphQL schema and resolvers

A GraphQL schema with queries, mutations and resolvers.

0

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.

ChatGPT
Coding & Development

Python FastAPI endpoint

A typed FastAPI endpoint with validation and error handling.

0

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…

Claude
Coding & Development

Secure webhook handler

Receive webhooks safely with signature verification, idempotency and retries handled.

0

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),…

ChatGPT
Coding & Development

API rate limiting

Protect your API from abuse with rate limits per user, IP or API key.

0

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…

Claude
Coding & Development

Caching strategy with Redis

Speed up your app with the right caching approach and avoid stale-data bugs.

0

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…

Claude
Coding & Development

Express API with JWT authentication

Build a secure Node.js/Express API with sign-up, login, protected routes and token handling.

0