Skip to content
StackPractices

Recipes

Practical, copy-paste solutions to real development problems across multiple languages.

431 results

advanced

Build Autonomous AI Agents with Tool Use and Reasoning

How to design AI agents that autonomously plan, execute tools, and iterate toward goals using ReAct, function calling, and memory architectures.

advanced

AI Agents with Tool Use

Build autonomous AI agents that can use external tools and APIs to accomplish complex tasks.

beginner

Create a Chatbot with OpenAI Assistants API

How to create an AI chatbot using the OpenAI Assistants API with function calling and file retrieval

intermediate

Generate Images Programmatically with AI Models

How to create, edit, and optimize images using DALL-E, Stable Diffusion, and Midjourney APIs with prompt engineering, batch processing, and content moderation.

advanced

Fine-Tune a Language Model for Code Generation

How to fine-tune a large language model for domain-specific code generation using LoRA, QLoRA, and custom datasets

intermediate

Apply Prompt Engineering: What Works

How to write useful prompts for LLMs using role assignment, few-shot examples, chain-of-thought reasoning, and structured output formatting.

advanced

Build Stateful AI Agents with LangGraph State Machines

Create multi-step AI agents with LangGraph using state machines, conditional edges, tool calling, and human-in-the-loop checkpoints for production workflows

advanced

Fine-Tune and Deploy Text Classifiers with Hugging Face

Fine-tune a pre-trained transformer model for text classification using Hugging Face Trainer, tokenize datasets, evaluate metrics, and deploy for inference

intermediate

Compose LCEL Chains in LangChain for Multi-Step LLM

Build composable LLM pipelines with LangChain Expression Language (LCEL) using pipes, parallel execution, and custom runnable components

intermediate

Evaluate RAG Quality with RAGAS Metrics

Measure RAG pipeline quality using RAGAS framework metrics — faithfulness, answer relevancy, context precision, and context recall for objective evaluation

intermediate

Stream LLM Output with Server-Sent Events (SSE)

Stream LLM responses to clients in real-time using Server-Sent Events with FastAPI, OpenAI streaming, and async generators for token-by-token output

intermediate

Run LLMs Locally with Ollama for Private Inference

Install and use Ollama to run open-source LLMs locally with Python, including streaming, embeddings, function calling, and model management without API costs

intermediate

Compare Text Semantic Similarity with OpenAI Embeddings

Generate text embeddings with OpenAI and compute cosine similarity to measure semantic similarity between texts for search, dedup, and clustering

intermediate

Structured JSON Output from OpenAI Function Calling

Use OpenAI function calling and structured outputs to get reliable JSON from LLMs with Pydantic validation and error handling

intermediate

a Local RAG Pipeline with ChromaDB and Sentence Transformers

Implement retrieval-augmented generation locally with ChromaDB, sentence-transformers embeddings, and LLM generation without external API dependencies

intermediate

Sentiment Analysis with Python and NLTK

Score text sentiment using NLTK VADER and custom lexicons in Python.

intermediate

Store and Query Embeddings in Pinecone Vector Database

Use Pinecone to store, query, and filter vector embeddings for semantic search with metadata filtering and namespace isolation

intermediate

Build a RAG Pipeline with LangChain and Vector Databases

How to build a Retrieval-Augmented Generation (RAG) pipeline using LangChain and vector databases for AI-powered search

intermediate

Implement Semantic Search with Embeddings

How to implement semantic search using text embeddings and vector similarity search for intelligent document retrieval

intermediate

Build a Slack Bot with OpenAI GPT-4

How to build a conversational Slack bot powered by OpenAI GPT-4 that responds to mentions and direct messages

beginner

Create API Documentation with OpenAPI

Generate interactive API docs from OpenAPI specs using Swagger UI, Redoc, and native tools in Python, JavaScript, and Java.

intermediate

Implement API Logging and Audit Trails

Set up thorough request/response logging and audit trails for APIs with structured output, correlation IDs, and compliance considerations.

intermediate

API Rate Limiting

Protect APIs from abuse and ensure fair resource usage with token bucket, sliding window, and leaky bucket rate limiting.

intermediate

Implement API Rate Limiting with Redis

Protect APIs from abuse using token bucket and sliding window algorithms with Redis, including burst handling, distributed coordination, and custom headers for client feedback

intermediate

API Versioning

How to version REST and GraphQL APIs to maintain backward compatibility while evolving your interface.

beginner

Call a REST API

How to make HTTP requests to a REST API and handle the JSON response in multiple languages.

intermediate

Cursor-Based Pagination with PostgreSQL

Implement efficient cursor-based pagination for large datasets in PostgreSQL, avoiding OFFSET performance degradation with indexed keyset pagination and stable sort ordering

intermediate

Express.js Middleware Composition Patterns

Build maintainable Express applications using middleware composition patterns for authentication, validation, error handling, request context propagation, and async route wrappers

intermediate

Go REST API with Gin and Middleware

Build production-ready REST APIs in Go using the Gin framework with custom middleware for logging, authentication, validation, and error handling

intermediate

Implement a GraphQL API

Build a production-ready GraphQL API with type-safe schemas, resolvers, and query optimization in Python, JavaScript, and Java.

intermediate

Build a GraphQL API with Apollo Server and TypeScript

How to build a production-ready GraphQL API using Apollo Server, TypeScript, and DataLoader to solve the N+1 query problem

intermediate

Implement a gRPC API with Protocol Buffers

How to implement a gRPC API using Protocol Buffers for high-performance service-to-service communication

intermediate

gRPC Services with Protocol Buffers in TypeScript

Build high-performance, strongly-typed services using gRPC with Protocol Buffers, covering unary calls, server streaming, client streaming, and bidirectional streaming

intermediate

Handle CORS Correctly

How to configure Cross-Origin Resource Sharing (CORS) headers correctly for APIs, SPAs, and serverless functions without opening security holes.

intermediate

Handle Errors in APIs

Patterns for consistent, predictable API error handling across multiple languages and frameworks.

intermediate

Idempotent API Endpoints

How to design and implement idempotent API endpoints that safely handle retries, duplicate requests, and network failures without side effects.

beginner

Input Validation

How to validate user input safely using schemas, type checking, and sanitization across Python, JavaScript, and Java.

intermediate

JavaScript Fetch Retry Logic with Exponential Backoff

Retry failed HTTP requests in JavaScript with exponential backoff

beginner

Logging

How to implement structured, level-based logging across Python, JavaScript, and Java with what works for production observability.

intermediate

Middleware

How to implement request/response middleware for logging, auth, and error handling across Python, JavaScript, and Java.

intermediate

Configure Nginx as a Reverse Proxy and API Gateway

How to use Nginx as a reverse proxy for backend services, implement load balancing, SSL termination, and rate limiting for production API gateways

intermediate

Node.js WebSocket Real-Time Communication with Socket.io

Build real-time WebSocket applications in Node.js with Socket.io

intermediate

Pagination

How to implement cursor-based and offset-based pagination in APIs and databases across Python, JavaScript, and SQL.

intermediate

Python API Rate Limiting with Token Bucket

Implement token bucket rate limiting in Flask and FastAPI with Redis support

intermediate

Rate Limiting

How to implement API rate limiting using token bucket, sliding window, and fixed window algorithms across Python, JavaScript, and Java.

intermediate

Build Real-Time Notifications with WebSockets

Implement a real-time notification system using WebSockets and Redis pub/sub for broadcasting messages across clients.

intermediate

REST API Design: What Works

Design reliable, scalable REST APIs with proper HTTP methods, status codes, versioning, and pagination strategies.

intermediate

Send Emails with SMTP

How to send transactional and bulk emails securely using SMTP with template support.

intermediate

Server-Sent Events (SSE)

How to implement one-way real-time streaming from server to browser using Server-Sent Events, with reconnection, event types, and multi-client broadcasting.

intermediate

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, heartbeat pings, and graceful client disconnect handling

intermediate

Server-Sent Events with Node.js and Express

Implement real-time server-to-client push using Server-Sent Events in Node.js with Express, covering connection management, event types, reconnection logic, and backpressure handling

intermediate

Webhooks

How to create and consume webhook endpoints for real-time event-driven integrations.

intermediate

WebSocket Authentication and Security Patterns

How to authenticate WebSocket connections, implement token validation, and handle authorization for real-time messaging in production

intermediate

Build a Bidirectional Chat with WebSocket and Node.js

How to build a real-time bidirectional chat application using WebSocket with room-based messaging, presence tracking, and message persistence

intermediate

WebSocket Server

How to build a WebSocket server for bidirectional real-time communication, with connection management, message broadcasting, and heartbeat keepalive.

intermediate

Design a Scalable API Gateway for Microservices

How to build an API gateway that routes requests, handles authentication, rate limiting, caching, and protocol translation between clients and backend microservices.

intermediate

Build Resilient Systems with the Circuit Breaker Pattern

How to prevent cascading failures in distributed systems using circuit breakers with open, closed, and half-open states in Java, TypeScript, and Python.

intermediate

Dependency Injection

Implement dependency injection to write testable, decoupled code across languages and frameworks.

intermediate

Design Event-Driven Systems with Event Buses and Brokers

How to build loosely coupled systems using events, event buses, message brokers, and event sourcing for growth-ready asynchronous communication between services.

intermediate

Distribute Traffic with Load Balancing Algorithms

How to distribute incoming requests across multiple servers using round-robin, least-connections, weighted, and consistent hashing algorithms with health checks and failover.

advanced

Microservices Communication Patterns

Choose between synchronous and asynchronous communication patterns for resilient microservices architectures.

advanced

Resilient Microservices with Circuit Breakers, Retries

How to build fault-tolerant distributed systems using microservices patterns including circuit breakers, bulkheads, retries with backoff, and sagas for transaction management.

advanced

Multi-Tenancy Architecture

Design multi-tenant applications with shared or isolated databases, tenant-aware routing, and data isolation strategies.

intermediate

Retry with Exponential Backoff

Implement resilient retry strategies with exponential backoff, jitter, and circuit breaker integration for transient failure recovery.

advanced

Manage Distributed Transactions with the Saga Pattern

How to implement saga orchestration and choreography to maintain data consistency across microservices without distributed transactions or two-phase commit.

intermediate

Service Discovery

Implement service discovery with health checks, DNS-based resolution, and service registries for live microservices environments.

advanced

Secure and Observe Microservices with a Service Mesh

How to deploy Istio or Linkerd to add mTLS, traffic management, observability, and policy enforcement to microservices without changing application code.

advanced

Workflow Engines

Orchestrate complex business processes with workflow engines, state machines, and long-running task coordination across distributed services.

intermediate

Secure API Key Authentication for Services and Clients

How to generate, distribute, validate, and rotate API keys for machine-to-machine authentication using HMAC signatures, scopes, and rate-limited key policies.

beginner

Hash Passwords with Argon2

How to hash and verify passwords securely with Argon2id, the winner of the Password Hashing Competition, with correct parameter tuning and migration strategies from bcrypt.

advanced

Implement ABAC

How to implement attribute-based access control with policy engines, live context evaluation, and fine-grained authorization decisions across Python, Node.js, and Java.

intermediate

Implement RBAC

How to implement role-based access control with hierarchical roles, permission grants, and middleware enforcement across Python, Node.js, and Java.

advanced

Implement SSO with SAML

How to implement SAML 2.0 single sign-on as a Service Provider with XML signature verification, IdP metadata handling, and secure session management in Python, Node.js, and Java.

intermediate

JWT Authentication

How to generate, validate, and refresh JSON Web Tokens for stateless API authentication.

intermediate

Implement Passwordless Login with Magic Links

How to build secure passwordless authentication using time-limited magic links sent via email, with token generation, validation, and replay attack prevention.

intermediate

Node.js JWT Authentication: Verify and Refresh Tokens

Implement JWT authentication in Node.js with access and refresh tokens

intermediate

Node.js OAuth2 GitHub Login with Express

Implement GitHub OAuth2 login flow in Node.js with Express and Passport

intermediate

OAuth 2.0 Login

How to implement OAuth 2.0 authentication with Google, GitHub, and other providers.

intermediate

Password Hashing

How to securely hash and verify passwords using modern algorithms across Python, JavaScript, and Java.

intermediate

Implement Secure Session Management

How to create, validate, and expire user sessions securely across web applications using cookies, tokens, and server-side storage.

intermediate

Two-Factor Authentication (2FA / TOTP)

How to implement time-based one-time password (TOTP) two-factor authentication for secure user login.

intermediate

CDN Cache Invalidation Strategies and Patterns

Implement CDN cache invalidation using purge APIs, surrogate keys, tag-based invalidation, and versioned URLs to keep content fresh

intermediate

Cache Database Query Results with Redis and Python

Cache expensive database query results in Redis with cache-aside pattern, TTL management, and invalidation on writes for Python applications.

beginner

HTTP Cache-Control Headers for APIs and Static Assets

Set Cache-Control, ETag, and Last-Modified headers to control browser and CDN caching for API responses and static assets

intermediate

Configure Caffeine Cache in Java with Eviction Policies

Set up Caffeine cache in a Java application with size-based, time-based, and weighted eviction policies for high-performance local caching.

intermediate

Use Spring Cache Annotations with Redis Backend

Apply Spring's @Cacheable, @CachePut, and @CacheEvict annotations with a Redis cache manager for declarative caching in Java applications.

advanced

Multi-Level Cache with In-Memory L1 and Redis L2

Implement a two-level cache combining in-memory L1 and Redis L2 for low-latency reads with cross-instance consistency

intermediate

Cache HTTP Responses with Nginx Reverse Proxy

Configure Nginx as a caching reverse proxy to cache upstream HTTP responses with TTL zones, cache keys, and conditional purging.

intermediate

Implement an LRU Cache in Node.js

Build a least-recently-used cache in Node.js with O(1) get and set operations using a Map-based doubly linked list

intermediate

Implement Redis Cache Invalidation in Node.js

Invalidate Redis cache entries in Node.js with TTL expiry, explicit deletion, pattern-based clearing, and pub/sub-based distributed invalidation.

intermediate

Cache Database Queries with Django Cache Framework

Use Django's built-in cache framework with per-view caching, template fragment caching, and low-level cache API for database query optimization.

intermediate

Cache HTTP Responses with httpx and CacheControl in Python

Cache HTTP responses in Python using httpx with CacheControl for HTTP-compliant caching, ETag handling, and conditional requests.

intermediate

Store User Sessions in Memcached with Python

Use Memcached as a distributed session store in Python web applications with pymemcache, TTL management, and failover handling.

intermediate

Cache Function Results with Redis and TTL in Python

Build a Python decorator that caches function return values in Redis with configurable TTL, key generation, and cache invalidation

intermediate

Implement the Cache-Aside Pattern with Redis

Use the cache-aside pattern to read and write data through Redis, handling cache misses, stale reads, and write-through invalidation

advanced

Distributed Locking with Redis and Redlock

Implement distributed locks with Redis for mutual exclusion across processes, using SET NX with TTL and the Redlock algorithm for reliability

intermediate

Redis Pub/Sub for Cross-Process Messaging

Use Redis pub/sub channels to broadcast events between processes, handle subscriptions, and implement real-time notifications

advanced

Rate Limiting with Redis Token Bucket Algorithm

Implement a distributed token bucket rate limiter using Redis atomic operations for API throttling across multiple server instances

intermediate

Build a Real-Time Leaderboard with Redis Sorted Sets

Use Redis sorted sets to implement real-time leaderboards with rank tracking, score updates, and top-N queries in O(log N) time

intermediate

Master Async Patterns with Promises, Futures, and Coroutines

How to write efficient concurrent code using async/await, promises, futures, and coroutines in JavaScript, Python, and Java for non-blocking I/O and parallel processing.

intermediate

Use Concurrent Data Structures for Thread-Safe Collections

How to safely share collections between threads using blocking queues, concurrent maps, copy-on-write lists, and atomic counters in Java, Python, and C++.

intermediate

Build Async Pipelines with C# async/await and Task.Run

Build async pipelines in C# using async/await, Task.Run, Task.WhenAll, Task.WhenAny, CancellationTokenSource, Channels, and Parallel.ForEachAsync for concurrent I/O and CPU work.

intermediate

Coordinate Concurrent Tasks with Communicating

How to structure concurrent programs using channels, select statements, and goroutines for safe communication without shared mutable state in Go, Rust, and JavaScript.

intermediate

Concurrent Patterns with Go Goroutines and Channels

Build concurrent systems in Go using goroutines, channels, select statements, worker pools, fan-out/fan-in, pipelines, context cancellation, and rate limiting with tickers.

advanced

Compose Asynchronous Pipelines with Java CompletableFuture

Build non-blocking async pipelines in Java using CompletableFuture with thenCompose, thenCombine, allOf, anyOf, exception handling, timeouts, and custom thread pools.

intermediate

Scale Concurrent Applications with Java Virtual Threads

Scale Java applications with virtual threads from Project Loom. Use Thread.ofVirtual, Executors.newVirtualThreadPerTaskExecutor, structured concurrency, and scoped values.

intermediate

Coordinate Shared Access with Locks, Mutexes, and Semaphores

How to prevent race conditions in concurrent programs using mutexes, read-write locks, semaphores, and atomic operations in Java, Python, and C++.

intermediate

Make Concurrent HTTP Requests with Python and aiohttp

Fetch multiple APIs concurrently using asyncio and aiohttp. Covers connection pooling, rate limiting, retries, and batch processing.

intermediate

Concurrent Async Tasks with asyncio.gather and Task Groups

Execute multiple async operations concurrently in Python using asyncio.gather, asyncio.TaskGroup, error handling with return_exceptions, timeouts, and semaphores for rate limiting.

intermediate

Rate Limit Async Operations with asyncio.Semaphore

Control concurrency in async Python using asyncio.Semaphore for rate limiting API calls, database connections, and resource access with bounded parallelism patterns.

intermediate

Schedule Periodic Tasks in Python with APScheduler

Run cron-like jobs in Python using APScheduler. Covers interval, cron, and date triggers, job stores, and background scheduling.

intermediate

Parallelize CPU and I/O Work with ThreadPoolExecutor

Use Python's ThreadPoolExecutor for parallel I/O operations, thread-safe result collection, Future callbacks, error handling, and mixing threads with asyncio for blocking work.

intermediate

Build Async Systems with Rust Tokio Runtime

Build async systems in Rust using the Tokio runtime with tasks, channels, select, synchronization primitives, graceful shutdown, and structured concurrency patterns.

intermediate

Manage Concurrent Work with Thread Pools and Executors

How to efficiently manage worker threads using thread pools, executors, and rejection policies in Java, Python, and C# for CPU-bound and I/O-bound workloads.

intermediate

Batch Processing Patterns

Design reliable batch processing pipelines for large datasets with retry logic, idempotency, and observability.

intermediate

Caching & Memoization

How to cache expensive computations and API responses using in-memory, LRU, and distributed caches across Python, JavaScript, and Java.

beginner

Convert CSV to JSON

How to convert CSV data to JSON format in Python, Java, and JavaScript.

beginner

Convert JSON to CSV

How to convert JSON data to CSV format in Python, Java, and JavaScript.

beginner

Validate and Sanitize User Input Data

How to validate, sanitize, and constrain user input data at the application boundary using schemas, type checking, and validation libraries.

beginner

Date Formatting

How to parse, format, and manipulate dates across timezones using Python, JavaScript, and Java.

intermediate

Deep Clone Objects in JavaScript

How to create deep copies of JavaScript objects and arrays correctly, handling circular references, Dates, Maps, Sets, and custom classes.

beginner

Deep Clone Objects in JavaScript: Beyond JSON.parse

Compare deep clone strategies including JSON.parse, structuredClone, manual recursion, and library approaches for copying nested objects with circular references and special types

beginner

Diff JSON Objects

How to compare two JSON objects and find differences in Python, Java, and JavaScript.

intermediate

Flatten and Unflatten Nested Objects

How to convert nested objects to flat key-value pairs and back again, with dot-notation, bracket notation, and custom separator support.

beginner

Format Phone Numbers

How to format and validate phone numbers in Python, Java, and JavaScript.

intermediate

Generate PDF Reports with Python

Create styled PDF documents from data using ReportLab and fpdf2 in Python.

beginner

Generate URL Slugs

How to generate clean, URL-friendly slugs from strings in multiple programming languages.

beginner

Merge JSON Files

How to merge multiple JSON files into a single object or array in Python, Java, and JavaScript.

intermediate

Merge JSON Files in JavaScript

Combine multiple JSON files with conflict resolution strategies using Node.js.

intermediate

Money and Currency Handling

How to represent, parse, format, and calculate monetary values accurately across currencies.

beginner

Parse Command Line Arguments

How to parse command line arguments in Python, Java, and Node.js CLI applications.

beginner

Parse CSV Files

How to parse CSV files in Python, Java, and JavaScript with practical code examples.

beginner

Parse CSV Files with Python and Pandas

How to read, filter, and transform large CSV files efficiently using Python pandas and the csv module.

beginner

Parse Excel Files

How to read and write Excel (.xlsx) files in Python, Java, and JavaScript.

beginner

Parse JSON

How to parse JSON strings into native data structures across multiple programming languages.

intermediate

Parse Log Files

How to parse and analyze server log files using Python, Java, and JavaScript.

beginner

Parse Markdown Files

How to parse Markdown to HTML and extract structured data in Python, Java, and JavaScript.

beginner

Parse PDF Files

How to extract text and metadata from PDF files in Python, Java, and JavaScript.

beginner

Parse TOML Files

How to parse TOML configuration files in Python, Java, and JavaScript.

beginner

Parse XML Files

How to parse XML documents in Python, Java, and JavaScript with practical code examples.

beginner

Parse YAML Files

How to parse YAML configuration files in Python, Java, and JavaScript.

advanced

Schedule and Monitor DAGs with Apache Airflow

How to define, schedule, and monitor Directed Acyclic Graphs in Apache Airflow with operators, sensors, XCom, and task dependencies.

advanced

Parallel DataFrame Operations with Dask

How to use Dask for parallel DataFrame operations on datasets larger than memory, covering lazy evaluation, partitions, custom computations, and distributed scheduling.

intermediate

Validate DataFrame Schemas with Pandera

How to validate pandas and Polars DataFrame schemas with Pandera, covering column types, constraints, custom checks, hypothesis testing, and schema inheritance.

intermediate

Transform Data in the Warehouse with dbt

How to use dbt for SQL-based data transformations with models, tests, materializations, macros, and incremental loading in a data warehouse.

intermediate

Read and Write Excel Files with Python

How to read, write, and format Excel spreadsheets using openpyxl and pandas in Python.

beginner

Generate QR Codes with Python

Create QR codes for URLs, text, and contact cards using the qrcode library in Python.

intermediate

Build an ETL Pipeline with pandas and Parquet

How to build an extract-transform-load pipeline using pandas for data processing and Parquet for columnar storage with type coercion and validation.

intermediate

High-Performance DataFrame Operations with Polars

How to use Polars for fast DataFrame operations with lazy evaluation, expression API, streaming, and interop with pandas for large datasets.

advanced

Large-Scale Aggregation with PySpark

How to perform group-by aggregations on large datasets with PySpark, covering window functions, UDFs, broadcast joins, and performance tuning.

intermediate

Extract Data from HTML Pages with Python and BeautifulSoup

Parse HTML and extract data using BeautifulSoup. Covers CSS selectors, navigation, tables, pagination, and respectful scraping with rate limiting.

intermediate

Prevent Race Conditions in JavaScript Async Code

Identify and fix race conditions in asynchronous JavaScript using proper sequencing, atomic operations, locks, and Promise patterns for predictable concurrent execution

beginner

Regular Expressions

How to use regular expressions for pattern matching, validation, and text extraction across Python, JavaScript, and Java.

beginner

Serialize and Deserialize Data

How to serialize and deserialize data in JSON, XML, and YAML across Python, Java, and JavaScript.

beginner

Sort an Array

How to sort arrays and lists in ascending, descending, and custom order across multiple languages.

advanced

Recursive CTEs for Hierarchical Data Queries

How to query hierarchical data with recursive Common Table Expressions in SQL, covering tree traversal, org charts, category trees, and cycle detection.

beginner

Truncate Text

How to truncate text with ellipsis and word boundaries in Python, Java, and JavaScript.

beginner

URL Encoding

How to encode and decode URLs, query parameters, and path segments safely across Python, JavaScript, and Java.

beginner

URL Encoding and Decoding

Master URL encoding in JavaScript and other languages with encodeURI, encodeURIComponent, plus-safe handling, RFC 3986 compliance, and decoding edge cases

beginner

UUID Generation

How to generate universally unique identifiers (UUIDs) for database keys, session tokens, and resource naming across Python, JavaScript, and Java.

beginner

UUID Generation: v4, v7, and ULID Comparison

Compare UUID v4, v7, ULID, and nanoid for generating unique identifiers with different tradeoffs in randomness, sortability, performance, and database index locality

intermediate

Validate JSON Schema

How to validate JSON data against schemas in Python, Java, and JavaScript.

intermediate

Implement ACID Transactions in PostgreSQL

How to use PostgreSQL transactions to ensure Atomicity, Consistency, Isolation, and Durability for reliable multi-step database operations

intermediate

Caching with Redis

How to implement application caching using Redis for performance and scalability.

beginner

Connect to MySQL

How to connect to MySQL databases in Python, JavaScript, and Java.

beginner

Connect to PostgreSQL

How to connect to PostgreSQL databases in Python, JavaScript, and Java.

beginner

Connect to Redis

How to connect to Redis and perform basic operations in Python, JavaScript, and Java.

intermediate

Database Connection Pooling

Configure and tune database connection pools to maximize throughput while preventing connection exhaustion.

intermediate

Handle Database Deadlocks and Retries

Detect, prevent, and recover from database deadlocks with automatic retry logic, isolation levels, and query ordering strategies.

intermediate

Manage Database Migrations Safely

How to version, apply, and rollback database schema changes using migration tools like Flyway, Alembic, and Liquibase in production environments.

intermediate

Database Migrations Safely

How to run database schema migrations without downtime or data loss.

intermediate

Set Up Database Read Replicas for Scaling

Scale read-heavy workloads with database read replicas, replication lag monitoring, and read/write splitting across primary and replica instances.

intermediate

Database Replication

Set up and manage database replication for high availability, read scaling, and disaster recovery with primary-replica architectures.

intermediate

Database Transactions

How to use ACID transactions to ensure data integrity across Python, JavaScript, and Java with SQL examples.

intermediate

Create and Use Database Views and Materialized Views

How to create and use database views and materialized views to simplify queries and improve read performance

intermediate

Prevent and Resolve Deadlocks in SQL Transactions

Identify deadlock patterns in SQL databases, apply consistent lock ordering, use appropriate isolation levels, and implement retry logic for resilient concurrent transactions

intermediate

Elasticsearch Aggregations for Analytics and Search

How to use Elasticsearch aggregations to build faceted search, analytics dashboards, and real-time metrics from indexed data

advanced

Implement Event Sourcing in a Relational Database

Build event sourcing systems using relational databases with event stores, projections, and snapshotting for audit and temporal querying.

beginner

Execute Raw SQL

How to execute raw SQL queries safely with parameterized statements.

intermediate

Full-Text Search

How to implement full-text search with Elasticsearch, Meilisearch, and PostgreSQL.

beginner

CRUD Operations with MongoDB and Mongoose

How to perform Create, Read, Update, and Delete operations in MongoDB using Mongoose ODM with Node.js and Express

intermediate

Node.js Caching with Redis: Cache-Aside and TTL Patterns

Cache API responses in Node.js with Redis using cache-aside and TTL patterns

intermediate

Implement Optimistic Locking with Versioning

How to implement optimistic locking with versioning to prevent lost updates in concurrent database access

intermediate

PostgreSQL Query Optimization and Indexing Strategies

Analyze and optimize slow PostgreSQL queries using EXPLAIN, proper indexing, partial indexes, and query rewriting to reduce execution time from seconds to milliseconds

intermediate

Redis Cache Patterns for High-Performance Applications

How to implement cache-aside, write-through, and write-behind patterns with Redis to reduce database load and improve response times

advanced

Database Schema Evolution

Evolve database schemas safely with backward-compatible changes, versioned migrations, and online DDL operations in production environments.

beginner

Seed Database

How to seed databases with realistic data for development, testing, and staging environments using seed scripts, migrations, and factories across PostgreSQL, MongoDB, and Prisma.

beginner

Soft Deletes

How to implement soft deletes to preserve data while hiding records from normal queries.

beginner

Find and Remove Duplicate Rows in SQL

Detect duplicate records in SQL tables using GROUP BY and HAVING, then remove them safely while keeping the canonical row.

intermediate

Set Up Full-Text Search Indexes

Configure full-text search indexes in PostgreSQL to query large text columns with ranking, stemming, and highlighting.

intermediate

Analyze and Optimize SQL Indexes with EXPLAIN

Identify missing, unused, and inefficient indexes by reading execution plans and measuring query cost with EXPLAIN.

beginner

SQL Joins

Practical examples of INNER, LEFT, RIGHT, and FULL OUTER JOINs with real-world query patterns.

advanced

Zero-Downtime Column Rename Migration

Rename columns or change data types without locking tables by using views, triggers, and backfill strategies.

advanced

Partition Large Tables by Date or Range

Split huge SQL tables into smaller partitions by date, range, or list to improve query performance and maintenance.

intermediate

Traverse Hierarchical Data with Recursive CTEs

Query tree-like or graph-like structures in SQL using recursive common table expressions to walk parent-child relationships.

intermediate

Rank Rows and Calculate Running Totals with Window Functions

Use SQL window functions to rank rows, compute running totals, and compare values within partitions without self-joins.

intermediate

Use ORM for CRUD

How to perform CRUD operations using ORMs in Python, JavaScript, and Java.

beginner

Bridge Incompatible Interfaces with the Adapter Pattern

How to integrate legacy APIs, third-party libraries, and incompatible interfaces using object adapters, class adapters, and facade adapters in Java, TypeScript, and Python.

advanced

Scale Read and Write Workloads with CQRS

How to separate read and write models using Command Query Responsibility Segregation for optimized queries, event sourcing, and independent scaling of read and write paths.

advanced

Model Complex Business Domains with Domain-Driven Design

How to structure code around business concepts using bounded contexts, aggregates, entities, value objects, and domain events to manage complexity in large applications.

beginner

Create Objects Flexibly with the Factory Pattern

How to use factory methods, abstract factories, and dependency injection containers to decouple object creation from usage and improve testability.

intermediate

Build Maintainable Applications with Hexagonal Architecture

How to structure applications using ports and adapters to isolate business logic from frameworks, databases, and external services for testability and flexibility.

beginner

Implement Reactive Systems with the Observer Pattern

How to build event-driven, reactive systems using the observer pattern with pub/sub, event emitters, and reactive streams in JavaScript, Java, and Python.

beginner

Ensure a Single Instance with the Singleton Pattern

How to guarantee exactly one instance of a class exists in an application using lazy initialization, thread-safe creation, and registry-based singletons.

beginner

Swap Algorithms at Runtime with the Strategy Pattern

How to encapsulate interchangeable algorithms and behaviors using the strategy pattern with dependency injection, function pointers, and lambda strategies in Java, TypeScript, and Python.

intermediate

Ansible Playbook for Server Configuration

How to write and run Ansible playbooks for provisioning, configuring, and managing servers with idempotent tasks, roles, and inventory files.

intermediate

Deploy Containers to AWS ECS with Fargate

How to deploy Docker containers to AWS ECS using Fargate serverless compute with Terraform and GitHub Actions

intermediate

Background Jobs

How to schedule and run background jobs using cron, task queues, and workers.

intermediate

AWS CLI Automation with Bash

Automate AWS resource provisioning with bash and AWS CLI

intermediate

Backup Rotation Script in Bash

Automated backup with retention policies using bash and find.

intermediate

Monitor Disk Usage with Bash

Alert when disk space crosses thresholds with bash scripts

intermediate

Log Rotation and Compression in Bash

Rotate and compress application logs automatically with bash scripts

intermediate

Run Shell Commands in Parallel with Bash

Execute multiple shell commands concurrently using xargs, GNU parallel, and background jobs.

beginner

Bash Scripting for DevOps Automation and System Tasks

How to write reliable Bash scripts for automating deployments, system monitoring, log rotation, and routine maintenance tasks

intermediate

Blue-Green Deployment

Deploy with zero downtime using blue-green environments, instant traffic switching, and automated rollback capabilities.

advanced

Chaos Engineering

Build resilient systems by intentionally injecting failures and observing how your distributed services respond and recover.

beginner

CI/CD Pipeline Setup

Set up automated CI/CD pipelines for testing, building, and deploying applications with GitHub Actions and what works.

intermediate

CLI Tool with Argument Parsing

How to build a professional command-line interface with argument parsing, flags, and subcommands.

intermediate

Container Image Security Scanning with Trivy

Scan Docker images for vulnerabilities, misconfigurations, and secrets using Trivy, integrate scanning into CI/CD pipelines, and enforce image policies before deployment to production

beginner

Cron Jobs

How to schedule and manage recurring tasks using cron syntax across Linux, Python, and Node.js.

beginner

Docker Basics

How to containerize an application, write a Dockerfile, and run containers with Docker Compose.

intermediate

Docker Compose Dev/Prod Split: Separate Environments

Separate development and production Docker Compose configs with overrides

beginner

Local Microservices Development with Docker Compose

Orchestrate multi-service local environments with Docker Compose including databases, caches, message brokers, and reverse proxies with hot reload and shared networks

intermediate

Override Docker Compose Configs per Environment

How to use Docker Compose override files for environment-specific configurations, covering dev, test, staging, production, profiles, and secrets management.

intermediate

Scan Docker Images for CVEs with Trivy and Grype

Scan Docker images for vulnerabilities before deployment using Trivy and Grype. Covers CI integration, severity filtering, SBOM, and remediation.

intermediate

Centralize Container Logs with Fluentd and Docker

Collect, filter, and forward Docker container logs to Elasticsearch, S3, or stdout using Fluentd as a logging driver or sidecar.

intermediate

Slim Production Images with Multi-Stage Docker Builds

How to build minimal production Docker images using multi-stage builds with distroless base images, covering Go, Node.js, Python, and Java examples with image size reduction.

intermediate

Docker Multi-Stage Build Optimization for Smaller Images

Reduce Docker image size with multi-stage builds and proper layering

intermediate

Docker Network Isolation and Inter-Container Security

Secure inter-container communication with custom Docker networks, network segmentation, and access control policies.

intermediate

Docker Secrets Management Without Hardcoding Credentials

Inject secrets into containers using Docker secrets, env files, and external secret managers without hardcoding them in images.

beginner

Environment Variables

How to read, set, and manage environment variables securely across Python, JavaScript, and Java.

intermediate

Feature Flags

How to implement feature toggles to safely roll out, test, and rollback functionality without deploying code.

intermediate

Generate Sitemaps Live

How to build and serve live XML sitemaps from your application data, with multi-language support, pagination, and automatic lastmod dates.

intermediate

Clean Git Commit History with Interactive Rebase

Squash, reorder, edit, and split commits with git rebase interactive. Covers pick, squash, fixup, reword, drop, and conflict resolution.

beginner

Git Workflow

A practical branching strategy for teams: feature branches, pull requests, and clean commit history.

intermediate

GitHub Actions CI/CD

How to build and deploy with GitHub Actions using workflows, matrices, caching, and secrets.

intermediate

Across Multiple OS and Language Versions with GitHub

How to use GitHub Actions matrix strategy to test across multiple operating systems, language versions, and configurations with include, exclude, and dynamic matrices.

intermediate

Share Workflow Logic with GitHub Actions Reusable Workflows

How to create and consume reusable workflows in GitHub Actions, covering inputs, secrets, conditional jobs, matrix strategy, and organization-wide sharing.

intermediate

Implement Graceful Shutdown and Zero-Downtime Restarts

How to implement graceful shutdown and zero-downtime restarts for web servers, workers, and containers

beginner

Observability Dashboards with Grafana and Prometheus

Build interactive Grafana dashboards that visualize Prometheus metrics with panels, variables, and alerts for thorough service observability

beginner

Health Check Endpoint

How to implement a production-ready health check endpoint for monitoring and load balancers.

intermediate

Deploy Applications to Kubernetes with Helm Charts

Package, version, and deploy Kubernetes applications using Helm charts with value overrides, template functions, and release management for reproducible infrastructure

intermediate

Immutable Infrastructure

Build immutable infrastructure with versioned machine images and containers to eliminate configuration drift and ensure reproducible deployments.

advanced

Canary Deployments with Istio Service Mesh

How to use Istio traffic splitting to perform safe canary deployments by gradually shifting user traffic between application versions

intermediate

Mount Configs and Secrets into Kubernetes Pods

How to mount ConfigMaps and Secrets into Kubernetes pods using env vars, volumes, projected volumes, and secret management with external secrets.

intermediate

Package Kubernetes Manifests with Helm Charts

How to create, template, and deploy Kubernetes applications using Helm charts, covering values, conditionals, ranges, hooks, subcharts, and library charts.

intermediate

Load Balancing with HAProxy and Health Checks

Configure HAProxy as a high-performance load balancer with active health checks, sticky sessions, and SSL termination for resilient service distribution

beginner

Parse and Validate YAML/JSON Configuration

How to parse and validate application configuration files using YAML and JSON schemas.

beginner

Set Up Pre-Commit Hooks

How to set up pre-commit hooks with husky, lint-staged, and pre-commit to enforce code quality before commits

intermediate

Metrics Collection and Alerting with Prometheus

Instrument applications and infrastructure with Prometheus metrics, configure alerting rules, and set up recording rules for efficient monitoring of service health

intermediate

Expose Custom Application Metrics with Python and Prometheus

Build a custom Prometheus metrics exporter in Python using prometheus_client for counters, gauges, histograms, and summaries.

advanced

a Custom Terraform Provider with Python and

Extend Terraform with a custom provider using Python and the terraform-plugin-framework to manage external resources.

intermediate

Retry Logic with Exponential Backoff

How to implement resilient retry logic with exponential backoff and jitter for transient failures in network and API calls.

intermediate

Manage Application Secrets Securely

How to store, rotate, and inject API keys, database passwords, and certificates without hardcoding them in source code or environment files.

intermediate

Setup CI with GitLab Pipelines

How to configure GitLab CI/CD pipelines for testing, building, and deploying applications using .gitlab-ci.yml with stages, jobs, caching, and runners.

beginner

Setup SSL Certificates with Let's Encrypt

How to obtain, install, and auto-renew SSL certificates using Certbot with Nginx, Apache, and standalone modes for HTTPS-enabled deployments.

intermediate

Provision an AWS VPC with Terraform

How to use Terraform to provision a production-ready AWS VPC with public and private subnets, NAT gateways, and security groups

intermediate

Store Terraform State in S3 with DynamoDB Locking

How to configure Terraform remote state with S3 backend and DynamoDB locking, covering state isolation, workspace management, encryption, and CI/CD integration.

intermediate

Isolate Environments with Terraform Workspaces

How to use Terraform workspaces for environment isolation, covering workspace creation, conditional resources, variable management, and migration to separate state files.

intermediate

Traffic Mirroring

Mirror production traffic to staging environments for realistic testing, shadow deployments, and performance validation without user impact.

intermediate

AWS CLI Automation with Bash

Automate AWS resource provisioning, tagging, and cleanup using Bash scripts wrapped around the AWS CLI.

intermediate

Backup Rotation Script

Automate file backups with retention policies using a Bash script that rotates daily, weekly, and monthly snapshots.

advanced

Configure Firewall Rules with iptables

Set up basic firewall rules using iptables in Bash to filter traffic, block ports, and protect Linux servers.

intermediate

Log Rotation and Compression

Rotate and compress application logs with Bash to prevent disk exhaustion and simplify log retention.

beginner

Bash Loop Over Files

How to safely loop over files and directories in Bash, handling spaces, globs, and large file lists with correct patterns.

beginner

Monitor Disk Usage

Alert when disk space crosses thresholds using a Bash script that checks mount points and notifies operators.

intermediate

Bash Parallel Execution

How to run shell commands in parallel with xargs, GNU parallel, and Bash background jobs while controlling concurrency and collecting results.

intermediate

Parallel Job Execution with Bash

Run shell commands and scripts in parallel safely using xargs, parallel, or background jobs with concurrency control.

intermediate

SSH Key Management

Generate, rotate, and distribute SSH keys securely with Bash scripts for team and server access.

intermediate

Bash Text Processing

How to build capable text processing pipelines with grep, sed, awk, cut, sort, uniq, and tr for log analysis and data transformation.

intermediate

Compress and Decompress Files

How to handle ZIP, GZIP, and TAR archives programmatically.

beginner

Compress and Decompress Files with Gzip and Brotli

How to reduce file sizes for APIs, static assets, and log files using Gzip, Brotli, and zlib with streaming compression, content negotiation, and what works.

beginner

Copy and Move Files

How to copy and move files across platforms safely and efficiently.

beginner

Export Data to CSV/Excel

How to export structured data to CSV and Excel files efficiently.

intermediate

File Upload Validation

How to handle file uploads securely with size, type, and content validation.

intermediate

Generate PDFs

How to generate PDF documents programmatically from HTML, templates, or raw data.

beginner

Generate Temporary Files

How to create temporary files and directories safely with automatic cleanup across Python, Node.js, Java, and Bash.

beginner

Image Optimization

How to resize, compress, and optimize images for web performance.

beginner

Import Data from CSV/Excel

How to parse and import data from CSV and Excel files with validation.

intermediate

JavaScript Drag and Drop File Upload with HTML5 API

Implement native HTML5 drag and drop file upload in JavaScript

intermediate

Node.js File Upload Validation: Type, Size, and Content

Validate file uploads in Node.js with multer for type, size, and content

intermediate

Stream Process Large Files in Node.js Without Memory Issues

Process GB-sized files in Node.js using streams. Covers readline, transform streams, pipeline, backpressure, and chunk processing.

beginner

Batch Resize Images with Python

How to bulk resize and optimize images using Pillow and Python for web delivery.

beginner

Safely Extract Zip Files with Python

How to extract and validate zip archives securely using Python zipfile and shutil.

intermediate

Read Large Files

How to read large files efficiently without running out of memory.

beginner

Read and Write Files

How to read from and write to files safely across multiple programming languages.

intermediate

Rotate Log Files

How to implement log rotation by size, date, and count to prevent disk exhaustion across Python, Node.js, Java, and Linux systems.

intermediate

Process Large Files with Streams

How to read, transform, and write large files efficiently using streams without loading entire files into memory in Python, Node.js, and Java.

intermediate

Watch File Changes

How to monitor file system changes in real time.

intermediate

Write Large Files

How to write large files efficiently using buffered and streaming output.

intermediate

Container Queries for Component Responsiveness

How to use CSS container queries for component-level responsive layouts that adapt to their container size instead of the viewport.

intermediate

Design Tokens with CSS Custom Properties

How to build a design token system using CSS custom properties, including color scales, spacing, typography, themes, and responsive scaling.

intermediate

Dark Mode with prefers-color-scheme and CSS Variables

How to implement dark mode using CSS prefers-color-scheme media query, CSS custom properties, and manual toggle with localStorage persistence.

beginner

Build Responsive Email Templates with MJML

Create cross-client responsive email templates using MJML markup, live Handlebars variables, and inline CSS for reliable rendering across Gmail, Outlook, and Apple Mail

beginner

JavaScript Clipboard Copy and Paste

Copy text to clipboard programmatically in JavaScript with fallback

intermediate

Debounce and Throttle Functions in JavaScript

Control function execution rate with debounce and throttle. Covers leading/trailing edge, cancelable timers, and real-world use cases.

intermediate

JavaScript Event Loop

Understand how the JavaScript event loop works internally and how to write non-blocking code.

intermediate

JavaScript Infinite Scroll Pagination with

Implement scroll-based data loading in JavaScript with IntersectionObserver

beginner

JavaScript LocalStorage with TTL Expiration

Store data with TTL expiration in browser localStorage

intermediate

JavaScript Service Worker Offline Caching for PWA

Cache assets for offline PWA support with Service Workers and Cache API

intermediate

Form Validation with react-hook-form and Zod

How to build type-safe forms in React using react-hook-form with Zod schema validation, including nested fields, async validation, and dynamic fields.

intermediate

When to Use useMemo and useCallback

How and when to use React's useMemo and useCallback hooks for performance optimization, and when they add unnecessary overhead.

intermediate

Virtualize Long Lists with react-window

How to render large lists efficiently in React using react-window for DOM virtualization, including fixed and variable height rows and grid layouts.

intermediate

Server-Side Rendering

Improve performance and SEO with server-side rendering using Next.js, Nuxt, Astro, and other frameworks with hydration strategies.

intermediate

Reactive State Management with Svelte Stores

How to manage reactive state in Svelte using writable, readable, derived stores, and custom stores with contract-based updates.

intermediate

Exhaustive Type Checking with Discriminated Unions

How to use TypeScript discriminated unions for exhaustive type checking, ensuring all cases are handled at compile time with never type assertions.

advanced

Build Reusable Utility Types with Generics

How to create reusable TypeScript utility types using conditional types, mapped types, template literals, and generic constraints for type-safe APIs.

intermediate

Data Fetching with Vue 3 Composition API

How to fetch and manage data in Vue 3 using the Composition API with ref, computed, watch, and composables for reusable data logic.

intermediate

WebSockets for Real-Time Communication

Build bidirectional real-time communication with WebSockets, handling connection management, reconnection, and fallbacks.

intermediate

Custom GraphQL Scalar Types for Dates, Emails, and JSON

Define custom GraphQL scalars for Date, Email, URL, and JSON fields with serialization, parsing, and validation logic

intermediate

Batch and Cache Database Queries with GraphQL DataLoader

Use DataLoader to coalesce individual load requests into batched database calls, solving the N+1 query problem in GraphQL resolvers

advanced

Field-Level Auth with Custom GraphQL Schema Directives

Implement field-level authorization in GraphQL using custom schema directives that check user roles and permissions per field

intermediate

Structured GraphQL Errors with Extension Codes

Implement structured error handling in GraphQL with custom error classes, extension codes, and consistent error formatting for clients

advanced

Set Up a GraphQL Federation Gateway with Apollo

Compose multiple GraphQL services into a single federated supergraph using Apollo Federation and a gateway that routes queries across subgraphs

intermediate

Validate and Sanitize GraphQL Input Types Server-Side

Implement centralized input validation in GraphQL using custom validation functions, Zod schemas, and input type transforms

beginner

Mock GraphQL Resolvers for Frontend Development

Set up mocked GraphQL resolvers with Apollo Server so frontend teams can develop against a fake API before the backend is ready

intermediate

Detect and Fix N+1 Queries in GraphQL Resolvers

Identify N+1 query problems in GraphQL resolvers using logging, DataLoader, and query analysis tools before they hit production

intermediate

Cursor-based Pagination with GraphQL Relay Connections

Implement Relay-style cursor pagination in GraphQL with edges, nodes, and pageInfo for efficient forward and backward traversal

advanced

Real-Time Data with GraphQL WebSocket Subscriptions

Implement GraphQL subscriptions over WebSockets with Apollo Server and PubSub for real-time updates pushed to connected clients

intermediate

Cloud Cost Optimization

Reduce cloud infrastructure costs with right-sizing, reserved instances, spot instances, and automated resource scheduling across AWS, GCP, and Azure.

intermediate

Dead Letter Queues

Handle failed messages gracefully with dead letter queues, retry policies, and poison pill detection in message-driven architectures.

advanced

Event-Driven Microservices

Design event-driven microservices with message brokers, event sourcing, CQRS, and eventual consistency patterns.

advanced

Implement Event Sourcing with CQRS in Python

Build an event-sourced system with CQRS separation using Python, event store persistence, projection rebuilds, snapshots, and idempotent event handlers for audit-ready architectures.

intermediate

Event Streaming with Apache Kafka and Node.js

Build growth-ready event-driven systems using Apache Kafka with producers, consumers, consumer groups, and exactly-once semantics for reliable asynchronous messaging

advanced

Kafka Consumer Groups with Python for Scalable Streaming

Create Kafka consumer groups in Python with partition assignment, offset management, commit strategies, rebalance handling, and exactly-once semantics for scalable stream processing.

intermediate

Consume Kafka Topics with Spring Boot Stream Listeners

Build Kafka consumers in Spring Boot using @KafkaListener annotations, concurrent consumers, error handlers, DLQ patterns, and batch listeners with manual acknowledgment.

advanced

Message Processing Idempotency

Design idempotent message processors that safely handle duplicate deliveries without side effects in async and event-driven systems.

advanced

Implement the Transactional Outbox Pattern for Reliable

Use the transactional outbox pattern to reliably publish domain events alongside database changes, with a relay processor, polling strategies, and exactly-once delivery guarantees.

intermediate

Distribute Background Tasks with Python Celery and Redis

Set up Celery with Redis broker for distributed task processing including task chaining, groups, chords, retry strategies, scheduled tasks with Celery Beat, and result backends.

intermediate

Configure Dead-Letter Queues in RabbitMQ for Failed Messages

Set up dead-letter queues and exchanges in RabbitMQ with TTL expiry, max length limits, rejection-based routing, and retry patterns for resilient messaging.

intermediate

Build a RabbitMQ Consumer with Python and Pika

Create a RabbitMQ consumer and producer in Python using pika with durable queues, work dispatching, acknowledgments, dead-letter exchanges, and prefetch tuning.

intermediate

Task Queues and RPC with RabbitMQ and AMQP

Implement reliable task distribution and request-reply patterns using RabbitMQ with durable queues, dead-letter exchanges, and prefetch for controlled concurrency

intermediate

Implement Redis Pub/Sub Messaging in Python

Build real-time pub/sub messaging with Redis and Python including pattern subscriptions, message serialization, connection pooling, and broadcast patterns for microservices.

intermediate

Distributed Tracing

Trace requests across distributed microservices with OpenTelemetry, Jaeger, and Zipkin for latency debugging and performance optimization.

intermediate

Custom Health Checks with Spring Boot Actuator

How to implement custom health indicators with Spring Boot Actuator, including database, Redis, external API checks, and Kubernetes readiness probes.

intermediate

Expose Metrics with Micrometer and Prometheus

How to expose custom application metrics using Micrometer and Prometheus in Spring Boot, including counters, gauges, timers, and histograms.

intermediate

Log Aggregation

Centralize logs from distributed services with ELK, Fluentd, and Loki for search, alerting, and troubleshooting in production.

intermediate

Metrics Collection

Collect, aggregate, and expose application and infrastructure metrics with Prometheus, StatsD, and OpenTelemetry for monitoring and alerting.

intermediate

High-Performance Logging with pino

How to use pino for fast structured JSON logging in Node.js, including log levels, child loggers, transports, and integration with Express and Fastify.

intermediate

Error Tracking with Sentry in Express

How to integrate Sentry for error tracking in Node.js Express applications, including error handlers, performance monitoring, release tracking, and source maps.

intermediate

Rotate Logs Daily with Winston

How to configure daily log rotation in Node.js using winston and winston-daily-rotate-file, including size limits, retention, compression, and transport combining.

intermediate

Prometheus API Monitoring

Monitor API performance and health with Prometheus metrics, custom collectors, and alerting rules.

advanced

Distributed Tracing with OpenTelemetry

How to implement distributed tracing in Python with OpenTelemetry SDK, including spans, context propagation, auto-instrumentation, and Jaeger export.

intermediate

Expose Business Metrics with Prometheus

How to expose custom business metrics in Python using prometheus_client, including counters, gauges, histograms, summaries, and Flask integration.

intermediate

Structured JSON Logging with structlog

How to emit structured JSON logs in Python using structlog, including context binding, log levels, processors, and integration with standard logging.

intermediate

Real User Monitoring

Monitor actual user experiences with Core Web Vitals, session replay, and performance analytics to identify real-world bottlenecks.

intermediate

Structured Logging

Implement structured logging with JSON output, correlation IDs, and log aggregation for production observability.

beginner

Enable Brotli Compression in Nginx for Faster Asset Delivery

How to configure Brotli compression in Nginx to reduce transfer sizes for JavaScript, CSS, and HTML assets with better ratios than Gzip

intermediate

Implement Cache Invalidation Strategies

How to keep caches consistent with databases using TTL, write-through, write-behind, and event-driven invalidation patterns.

intermediate

Caching Strategies

Implement useful caching strategies for databases, APIs, and frontends using Redis, CDNs, and browser caches.

intermediate

Implement CDN Edge Caching

Configure content delivery networks with edge caching rules, cache invalidation, and geographic optimization for static and live content.

intermediate

Set Up Connection Pooling for Databases and HTTP Clients

How to set up connection pooling for databases and HTTP clients to improve performance and reliability

intermediate

Optimize Queries with Database Indexing

How to create, analyze, and maintain indexes to speed up database queries and avoid common indexing mistakes.

intermediate

Debounce and Throttle

How to implement debounce and throttle patterns to control function execution frequency for search inputs, scroll handlers, and API calls.

beginner

Implement Lazy Loading for Images, Components, and Data

How to defer loading of non-critical resources until they are needed, improving initial page load time, reducing bandwidth, and optimizing Core Web Vitals.

intermediate

Load Testing APIs with k6 and Threshold-Based Assertions

How to write and run load tests with k6 to measure API performance, validate SLOs, and identify bottlenecks before production deployment

intermediate

Optimize Slow Database Queries

How to identify, analyze, and fix slow SQL queries using EXPLAIN, query refactoring, and database-specific optimization techniques.

intermediate

SPA Performance: Code Splitting and Lazy Loading

Improve single-page application load times by splitting bundles at route and component level, implementing lazy loading with React.lazy and live imports

intermediate

Web Performance Optimization

Improve Core Web Vitals, reduce bundle sizes, and optimize frontend performance with lazy loading, code splitting, and modern build tools.

beginner

Secure APIs with HTTP Security Headers

How to configure essential security headers like HSTS, CSP, and X-Frame-Options to protect APIs and web applications from common attacks.

intermediate

Configure iptables Firewall Rules with Bash

Set up basic firewall rules with iptables and bash scripts

intermediate

SSH Key Management in Bash

Generate, rotate, and distribute SSH keys with bash scripts

intermediate

Container Security Scanning

Scan container images for vulnerabilities, misconfigurations, and secrets with Trivy, Clair, and Snyk before deploying to production.

beginner

Protect Web Forms Against CSRF Attacks

How to prevent Cross-Site Request Forgery attacks using synchronizer tokens, SameSite cookies, and double-submit cookie patterns.

intermediate

Data Privacy and GDPR Compliance

Implement data privacy controls, consent management, data anonymization, and GDPR-compliant data handling in web applications.

beginner

Schema-Based Data Validation with Zod in TypeScript

Validate and sanitize incoming data using Zod schemas with TypeScript inference, custom refinements, and error formatting for reliable API and form validation

intermediate

Implement Encryption at Rest for Databases and File Storage

How to encrypt sensitive data before storing it in databases, object storage, and backups using AES-256-GCM, envelope encryption, and key management services.

beginner

Escape HTML Entities

How to escape HTML entities to prevent XSS attacks in Python, Java, and JavaScript.

intermediate

HMAC Request Signing

Secure API requests with HMAC-SHA256 signatures to ensure integrity and authenticity.

intermediate

Detect Bugs in Java with SpotBugs Static Analysis

How to configure SpotBugs for Maven and Gradle, interpret bug patterns, suppress false positives, and integrate with CI/CD pipelines.

intermediate

Enforce Security Rules in Node.js with

How to configure eslint-plugin-security to detect insecure patterns in Node.js code, handle false positives, and integrate with CI/CD pipelines.

intermediate

Configure HTTP Security Headers with Helmet in Node.js

Set security HTTP headers in Express apps with Helmet — CSP, HSTS, X-Frame-Options, X-Content-Type-Options, and CORS for OWASP-compliant web security

intermediate

Implement OAuth 2.0 PKCE for Single-Page Applications

How to implement the OAuth 2.0 PKCE flow in single-page applications to securely authenticate users without exposing client secrets

intermediate

Password Hashing in Production

Securely hash and verify passwords using bcrypt, scrypt, and Argon2 with what works.

intermediate

Concurrent HTTP Requests with asyncio.gather and aiohttp

Fetch multiple HTTP endpoints concurrently using asyncio.gather and aiohttp with error handling, rate limiting, timeouts, and connection pooling

beginner

Find Security Issues in Python Code with Bandit

How to use Bandit to scan Python code for common security vulnerabilities, configure ignore lists, integrate with CI/CD, and interpret results.

intermediate

Encrypt and Decrypt Data with AES-GCM in Python

Encrypt sensitive data using AES-GCM with the cryptography library. Covers key derivation, nonce generation, authenticated encryption, and file encryption.

intermediate

Secure JWT Refresh Token Rotation with Python

Implement secure JWT access and refresh token rotation in Python with blacklist, reuse detection, and automatic access token renewal for stateless auth

intermediate

Strict Type Checking in Python with mypy

How to configure mypy strict mode for Python projects, handle common type errors, use Protocol and TypeGuard, and integrate with CI/CD.

beginner

Scan Python Packages for Known CVEs with pip-audit

How to use pip-audit to scan Python dependencies for known vulnerabilities, configure ignore lists, integrate with CI/CD, and remediate findings.

intermediate

Distributed Rate Limiting with FastAPI and Redis

Implement distributed rate limiting in FastAPI using Redis sliding window and token bucket algorithms with per-user, per-IP, and per-endpoint limits

advanced

Manage Application Secrets with HashiCorp Vault and Python

Store, retrieve, and rotate application secrets securely using HashiCorp Vault with Python hvac client, dynamic secrets, and automatic lease renewal

intermediate

Prevent SQL Injection with SQLAlchemy Parameterized Queries

Protect Python applications from SQL injection using SQLAlchemy parameterized queries, ORM models, input validation, and query inspection to ensure safe database access

intermediate

Implement Rate Limiting for APIs and Web Applications

How to protect APIs and web endpoints from abuse using token bucket, sliding window, and fixed window rate limiting strategies with Redis and in-memory implementations.

advanced

Implement Request Signing with HMAC

Secure API requests with HMAC signatures and AWS Signature v4 authentication for tamper-proof message integrity.

beginner

Sanitize User Input

How to sanitize and validate user input in Python, Java, and JavaScript to prevent injection attacks.

beginner

Security Headers

Harden web applications with HTTP security headers: CSP, HSTS, X-Frame-Options, and a thorough security header checklist.

intermediate

Prevent SQL Injection Attacks

How to write parameterized queries and use ORMs to eliminate SQL injection vulnerabilities across Python, JavaScript, and Java.

intermediate

Strict TypeScript ESLint Configuration for Production

How to configure typescript-eslint with strict rules for production TypeScript projects, handle type-aware linting, and integrate with CI/CD.

intermediate

Live Database Credentials with HashiCorp Vault

How to use HashiCorp Vault to generate short-lived database credentials, eliminating hardcoded passwords and reducing secret sprawl

intermediate

Prevent Cross-Site Scripting (XSS)

How to sanitize user input, escape output, and use Content Security Policy to prevent XSS attacks in web applications.

advanced

Reduce AWS Lambda Cold Start with Provisioned Concurrency

Minimize Lambda cold start latency using provisioned concurrency, ARM64 Graviton, lighter dependencies, and initialization code optimization.

intermediate

Package Python Dependencies for AWS Lambda with Layers

Package Python dependencies for AWS Lambda using Lambda Layers, Docker builds for native extensions, and SAM/Serverless Framework integration.

intermediate

Build HTTP-Triggered Azure Functions with Python

Create HTTP-triggered Azure Functions in Python with binding configuration, async handlers, dependency injection, and deployment via Azure CLI.

intermediate

Minimize Cold Start Latency in Serverless Functions

How to reduce cold start times in AWS Lambda, Azure Functions, and Cloud Run using provisioned concurrency, lazy loading, runtime tuning, and dependency optimization.

intermediate

Build Event-Driven Serverless Architectures

How to design loosely coupled systems using serverless functions triggered by events from message queues, databases, and webhooks.

advanced

Implement Event Sourcing in Serverless Architectures

How to capture all changes as immutable events using event sourcing with AWS Lambda, DynamoDB streams, and event stores for audit trails and temporal queries.

intermediate

Deploy HTTP Cloud Functions on Google Cloud with Node.js

Create and deploy HTTP-triggered Cloud Functions on Google Cloud with Node.js, Express integration, secrets management, and gcloud CLI deployment.

advanced

Build Real-Time APIs with WebSockets on Serverless

How to implement bidirectional real-time communication using WebSockets with AWS API Gateway, Lambda, DynamoDB, and what works in connection management.

beginner

Run Scheduled Jobs with Serverless Functions

How to replace cron jobs with serverless scheduled functions for backups, reporting, cleanup, and periodic maintenance tasks.

intermediate

Build Serverless APIs with API Gateway

How to design, deploy, and manage serverless HTTP APIs using AWS API Gateway, Lambda, and function-as-a-service patterns.

advanced

Secure API Gateway with Custom Lambda Authorizers

Implement custom Lambda authorizers for API Gateway with JWT validation, IAM policy generation, and caching for token-based authentication in serverless APIs.

advanced

Design a DynamoDB Single-Table Schema for Serverless Apps

Design a DynamoDB single-table schema with composite keys, GSI patterns, and access patterns for serverless applications using Python and boto3.

intermediate

Event-Driven Lambda with SQS Triggers and Batch Processing

Process SQS messages with Lambda using batch windows, partial batch responses, error handling, and dead-letter queues for resilient event-driven pipelines.

intermediate

Build Serverless Functions

Create and deploy serverless functions with AWS Lambda, Google Cloud Functions, and Azure Functions for event-driven, pay-per-use compute.

intermediate

Orchestrate Serverless Workflows with Step Functions and

How to coordinate complex serverless processes using AWS Step Functions, Temporal, and Durable Functions to manage state, retries, and error handling across distributed functions.

advanced

Orchestrate Serverless Workflows with AWS Step Functions

Build state machine workflows with AWS Step Functions using sequential, parallel, and map states for orchestrating Lambda functions and long-running processes.

intermediate

Test API Contracts with Consumer-Driven Contracts

How to prevent breaking changes between microservices using consumer-driven contract testing with Pact and OpenAPI validators.

intermediate

API Mocking for Testing

Build reliable tests by mocking external APIs with WireMock, MockServer, and MSW to eliminate flakiness and test edge cases.

beginner

Generate Test Data

How to generate realistic, deterministic test data with Faker, factory-boy, and type-aware generators for reliable test suites in Python, JavaScript, and Java.

advanced

Implement Mutation Testing

How to use mutation testing with MutPy, Stryker, and PIT to evaluate whether your tests actually assert behavior or merely execute code.

intermediate

Implement Property-Based Testing

How to write property-based tests with Hypothesis, fast-check, and jqwik that generate thousands of inputs to find edge cases traditional tests miss.

intermediate

Write Integration Tests

How to test multiple components working together using real databases, HTTP clients, and message queues in Python, JavaScript, and Java.

intermediate

Design Effective Integration Tests for Reliable Systems

How to write integration tests that verify component interactions using test containers, API contracts, consumer-driven contracts, and contract testing in Java, TypeScript, and Python.

intermediate

JUnit5 Soft Assertions with AssertJ

How to use AssertJ soft assertions in JUnit5 to collect multiple assertion failures in a single test instead of stopping at the first failure.

advanced

Java Testcontainers Integration Tests

How to use Testcontainers in JUnit5 to spin up real Postgres, Redis, and Kafka containers for integration tests that are reliable and reproducible.

intermediate

Stub External HTTP Services with WireMock

How to use WireMock in Java tests to stub external HTTP services, including response templating, delay simulation, and stateful mock behavior.

intermediate

Mock Network Requests with MSW

How to use Mock Service Worker (MSW) to intercept network requests in JavaScript tests and development, including REST and GraphQL mocking.

intermediate

Vitest Snapshot Testing for React

How to use Vitest snapshot testing to catch unintended UI changes in React components, including inline snapshots and snapshot updating workflows.

beginner

Snapshot Testing React Components with Jest

How to use Jest snapshot testing to catch unintended UI regressions in React components and prevent visual bugs from reaching production

intermediate

Perform Load Testing on APIs

How to simulate realistic traffic, measure response times, and identify bottlenecks using k6 and JMeter for APIs and web services.

beginner

Measure Test Coverage

How to measure, report, and enforce code coverage with branch and condition coverage using pytest-cov, nyc, and JaCoCo for meaningful quality gates.

intermediate

Test Express APIs with supertest

How to test Express.js REST API endpoints end-to-end using supertest, including status codes, JSON bodies, headers, authentication, and error handling.

beginner

Measure Test Coverage with pytest-cov

How to measure and enforce Python test coverage thresholds with pytest-cov, including branch coverage, HTML reports, exclusions, and CI integration.

advanced

Property-Based Testing with Hypothesis

How to use Hypothesis for property-based testing in Python, generating hundreds of test cases automatically from strategies instead of writing them by hand.

intermediate

Mock External APIs with responses Library

How to mock HTTP API calls in Python tests using the responses library, including status codes, headers, JSON bodies, and error simulation.

intermediate

Pytest Fixtures and Parametrize

How to use pytest fixtures and @pytest.mark.parametrize to write data-driven tests with reusable setup logic across Python projects.

beginner

Setup Test Fixtures

How to manage test fixtures with factory patterns, setup/teardown hooks, and deterministic data for reliable unit and integration tests across Python, JavaScript, and Java.

beginner

Unit Testing

How to write fast, deterministic unit tests with mocks and assertions in Python, JavaScript, and Java.

beginner

Write Unit Tests with Mocks and Stubs

How to isolate code under test using mock objects, stubs, and spies to replace external dependencies like databases, APIs, and file systems.