api
Practical resources about api for software engineers.
101 results
Building Robust APIs
APIs are the contract between systems. Whether you are exposing a public REST endpoint, designing an internal GraphQL schema, or integrating with a third-party service, the patterns you choose determine reliability, performance, and developer experience.
Here you will find recipes for handling CORS, implementing pagination, versioning endpoints, managing rate limits, and documenting APIs with OpenAPI. Each example includes runnable code in multiple languages so you can adapt it to your stack immediately.
Middleware
How to implement request/response middleware for logging, auth, and error handling across Python,...
Configure Nginx as a Reverse Proxy and API Gateway
How to use Nginx as a reverse proxy for backend services, implement load balancing, SSL...
Node.js WebSocket Real-Time Communication with Socket.io
Build real-time WebSocket applications in Node.js with Socket.io
Pagination
How to implement cursor-based and offset-based pagination in APIs and databases across Python,...
Python API Rate Limiting with Token Bucket
Implement token bucket rate limiting in Flask and FastAPI with Redis support
Rate Limiting
How to implement API rate limiting using token bucket, sliding window, and fixed window algorithms...
Build Real-Time Notifications with WebSockets
Implement a real-time notification system using WebSockets and Redis pub/sub for broadcasting...
REST API Design: What Works
Design reliable, scalable REST APIs with proper HTTP methods, status codes, versioning, and...
Send Transactional Emails with SMTP in Python, Node.js
Learn to send transactional and bulk emails via SMTP with Python, Node.js, and Java. Covers auth,...
Server-Sent Events (SSE): One-Way Real-Time Streaming
Implement one-way real-time streaming from server to browser using Server-Sent Events. Covers...
Implement Server-Sent Events in Go for Real-Time Updates
Build a production-ready Server-Sent Events endpoint in Go with connection management, heartbeat...
Server-Sent Events with Node.js and Express
Build server-to-client push with Server-Sent Events in Node.js and Express. Covers connections,...
Webhooks
How to create and consume webhook endpoints for real-time event-driven integrations.
WebSocket Authentication and Security Patterns
How to authenticate WebSocket connections, implement token validation, and handle authorization for...
Build a Bidirectional Chat with WebSocket and Node.js
How to build a real-time bidirectional chat application using WebSocket with room-based messaging,...
WebSocket Server
How to build a WebSocket server for bidirectional real-time communication, with connection...
Design a Scalable API Gateway for Microservices
Build an API gateway that routes requests, handles authentication, rate limiting, caching, and...
Use Spring Cache Annotations with Redis Backend
Apply Spring's @Cacheable, @CachePut, and @CacheEvict annotations with a Redis cache manager for...
Implement Redis Cache Invalidation in Node.js
Invalidate Redis cache entries in Node.js with TTL expiry, explicit deletion, pattern-based...
Cache HTTP Responses with httpx and CacheControl in Python
Cache HTTP responses in Python using httpx with CacheControl for HTTP-compliant caching, ETag...
No results found.