api
Practical resources about api for software engineers.
99 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 Emails with SMTP
How to send transactional and bulk emails securely using SMTP with template support.
Server-Sent Events (SSE)
How to implement one-way real-time streaming from server to browser using Server-Sent Events, with...
Implement Server-Sent Events in Go for Real-Time Updates
How to build a production-ready Server-Sent Events endpoint in Go with connection management,...
Server-Sent Events with Node.js and Express
Implement real-time server-to-client push using Server-Sent Events in Node.js with Express,...
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...
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...
Store User Sessions in Memcached with Python
Use Memcached as a distributed session store in Python web applications with pymemcache, TTL...
No results found.