Programming & Frameworks
Backend & API Engineering
Prepare for backend engineering and API development interviews, covering server-side architecture, REST APIs, authentication, database integration, performance, scalability, and production-ready backend systems.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
Backend development fundamentals
Understand the core responsibilities of backend development, including business logic, data processing, authentication, database access, integrations, and server-side application behavior.
Start learningClient-server architecture
Learn how clients and servers communicate over networks, including request initiation, server processing, response delivery, connection management, and distributed application interactions.
Start learningBackend application architecture
Explore common backend architecture styles, including layered architecture, modular monoliths, clean architecture, and service-oriented designs for maintainable applications.
Start learningRequest-response lifecycle
Understand the complete lifecycle of an API request, from client connection and routing through middleware, authentication, business logic, data access, and response generation.
Start learningHTTP and HTTPS fundamentals
Learn how HTTP enables communication between clients and servers and how HTTPS uses TLS encryption to protect data confidentiality, integrity, and server identity.
Start learningHTTP methods and status codes
Explore HTTP methods such as GET, POST, PUT, PATCH, and DELETE, along with status code categories and their appropriate use in API responses.
Start learningHTTP headers and content negotiation
Understand request and response headers, including Content-Type, Accept, Authorization, Cache-Control, and how content negotiation selects compatible response formats.
Start learningREST API fundamentals
Learn the fundamentals of REST APIs, including resources, representations, HTTP methods, stateless communication, and how backend services expose functionality to clients.
Start learningREST architectural principles
Explore REST constraints such as client-server separation, statelessness, cacheability, uniform interfaces, layered systems, and optional code-on-demand.
Start learningRESTful resource design
Learn how to model API resources using clear URIs, resource relationships, appropriate HTTP methods, representations, and consistent operations.
Start learningREST API naming conventions
Understand REST API naming practices for resource paths, collections, identifiers, nested resources, and consistent endpoint structures.
Start learningAPI versioning strategies
Compare URL-based, query parameter, header-based, and media-type API versioning strategies, including backward compatibility and controlled API evolution.
Start learningRequest and response handling
Learn how backend APIs process incoming requests and construct responses using headers, bodies, status codes, content types, and structured response models.
Start learningJSON and XML serialization
Understand serialization and deserialization of backend data using JSON and XML, including object mapping, data formats, compatibility, and serializer configuration.
Start learningRoute parameters and query parameters
Explore how route parameters identify specific resources while query parameters support filtering, searching, pagination, and optional request behavior.
Start learningPagination and filtering
Learn how to implement pagination and filtering APIs to retrieve manageable datasets, reduce response sizes, and support efficient client-side data navigation.
Start learningSorting and searching APIs
Understand API sorting and searching techniques, including sort fields, direction, keyword queries, multiple criteria, and safe query construction.
Start learningAPI validation
Explore API validation concepts for enforcing data types, required fields, business constraints, request structure, and consistent input requirements.
Start learningRequest validation and sanitization
Learn how to validate incoming API data and sanitize untrusted input to prevent malformed requests, invalid values, injection attacks, and unexpected application behavior.
Start learningError handling and exception management
Understand how backend applications handle runtime failures, propagate exceptions, distinguish expected errors, and return meaningful responses without exposing internal details.
Start learningGlobal exception handling
Learn how centralized exception handlers process application errors consistently, map exceptions to HTTP status codes, and simplify error management across API endpoints.
Start learningStandardized API error responses
Explore standardized error response structures containing error codes, messages, validation details, request identifiers, and consistent machine-readable information.
Start learningAPI documentation with Swagger and OpenAPI
Learn how Swagger and OpenAPI describe API endpoints, request schemas, responses, authentication requirements, and interactive documentation for developers and consumers.
Start learningAPI authentication and authorization
Understand how backend APIs verify client identities and enforce access permissions using authentication mechanisms, authorization policies, and protected endpoints.
Start learningAuthentication vs authorization
Compare authentication, which verifies who a user or client is, with authorization, which determines what resources and operations that identity can access.
Start learningJWT authentication
Learn how JSON Web Tokens support stateless API authentication, including token structure, signing, validation, expiration, claims, and secure token handling.
Start learningAccess tokens and refresh tokens
Understand how short-lived access tokens and longer-lived refresh tokens support API sessions, token renewal, expiration, revocation, and secure credential management.
Start learningOAuth 2.0 fundamentals
OAuth 2.0 fundamentals: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningOpenID Connect
Learn how OpenID Connect extends OAuth 2.0 with an identity layer, including ID tokens, user authentication, discovery, claims, and identity provider integration.
Start learningRole-based access control (RBAC)
Understand how role-based access control assigns permissions to roles and users, enabling APIs to restrict operations according to organizational responsibilities.
Start learningPolicy-based authorization
Explore policy-based authorization, where access decisions depend on rules, claims, roles, resource attributes, and contextual conditions rather than simple role checks.
Start learningAPI keys and client credentials
Learn how API keys and OAuth client credentials identify applications and authenticate service-to-service requests, including secure storage, rotation, and access restrictions.
Start learningSession management
Understand how backend applications manage user sessions, including session identifiers, cookies, expiration, persistence, invalidation, and distributed session storage.
Start learningCORS and CSRF
Explore Cross-Origin Resource Sharing and Cross-Site Request Forgery, including browser security policies, preflight requests, origin restrictions, and CSRF protection mechanisms.
Start learningAPI security best practices
Learn essential API security practices covering authentication, authorization, input validation, transport encryption, rate limiting, secret protection, and secure error handling.
Start learningRate limiting and throttling
Understand how rate limiting and throttling control request volumes, protect backend resources, prevent abuse, and enforce usage quotas using common algorithms and policies.
Start learningIdempotency and duplicate request handling
Learn how idempotent API operations produce consistent results when requests are repeated and how idempotency keys prevent duplicate processing during retries.
Start learningRetry mechanisms and exponential backoff
Explore retry strategies for transient API failures, including exponential backoff, jitter, maximum attempts, retryable status codes, and avoiding retry storms.
Start learningAPI caching
Understand how caching improves API response times and reduces backend workload through in-memory, distributed, application-level, and HTTP caching strategies.
Start learningHTTP caching headers
Learn how Cache-Control, Expires, Age, Vary, and other HTTP headers define caching policies, freshness, validation requirements, and shared or private cache behavior.
Start learningETags and conditional requests
Explore ETags and conditional HTTP requests using headers such as If-None-Match and If-Match to validate cached representations and prevent conflicting updates.
Start learningAsynchronous API processing
Understand asynchronous API designs that accept requests without waiting for long-running work, using background execution, status endpoints, callbacks, and event notifications.
Start learningBackground jobs and task scheduling
Learn how backend systems execute deferred and scheduled tasks for operations such as notifications, report generation, cleanup, and recurring business processes.
Start learningMessage queues and event-driven processing
Explore message queues and event-driven architectures, including producers, consumers, brokers, acknowledgments, delivery guarantees, and decoupled service communication.
Start learningFile upload and download APIs
Understand how to implement file transfer endpoints using multipart requests, streaming, content types, size restrictions, storage services, and secure download handling.
Start learningWebSockets and real-time communication
Learn how WebSockets establish persistent, bidirectional connections between clients and servers for chat, notifications, live dashboards, and collaborative applications.
Start learningServer-Sent Events (SSE)
Explore Server-Sent Events for delivering continuous server-to-client updates over HTTP, including event streams, reconnection, event identifiers, and real-time notifications.
Start learningDatabase integration
Understand how backend applications connect to databases, execute queries, map application models, manage transactions, and isolate data access responsibilities.
Start learningRelational and NoSQL databases
Compare relational databases and NoSQL systems, including schemas, relationships, transactions, document storage, key-value models, consistency, and application use cases.
Start learningDatabase transactions
Learn how database transactions group operations into reliable units of work using ACID properties, commit and rollback behavior, and isolation levels.
Start learningConnection pooling
Understand database connection pooling, including connection reuse, pool sizing, timeout configuration, resource limits, and the impact of connection management on performance.
Start learningRepository pattern
Explore the Repository pattern for separating persistence operations from business logic, including repository interfaces, query methods, and testable data access boundaries.
Start learningUnit of Work pattern
Understand the Unit of Work pattern for coordinating multiple database operations within a single transaction and managing consistent persistence changes.
Start learningData access optimization
Learn techniques for improving data access efficiency through batching, projection, query reduction, caching, pagination, and appropriate database access patterns.
Start learningORM fundamentals
Understand object-relational mapping and how ORM frameworks map application objects to relational tables, manage entity states, generate queries, and persist changes.
Start learningBackend performance optimization
Explore backend performance improvements through profiling, efficient algorithms, caching, database tuning, asynchronous processing, and resource utilization analysis.
Start learningDatabase query optimization
Learn how to optimize database queries using indexes, execution plans, efficient joins, selective projections, query rewriting, and appropriate filtering strategies.
Start learningMemory and resource management
Understand backend resource management, including memory allocation, garbage collection, file handles, database connections, disposal, and prevention of resource leaks.
Start learningAsynchronous programming
Learn asynchronous programming concepts for performing non-blocking operations, handling I/O-bound workloads, coordinating tasks, and improving server responsiveness.
Start learningConcurrency and parallel processing
Explore concurrency and parallel processing in backend applications, including task scheduling, simultaneous request handling, synchronization, and throughput considerations.
Start learningThread safety and synchronization
Understand thread safety, race conditions, shared mutable state, locks, synchronization mechanisms, and safe concurrent access to backend application resources.
Start learningDependency injection
Learn how dependency injection manages object dependencies through containers, constructor injection, service lifetimes, interface-based design, and testable application architecture.
Start learningMiddleware and request pipelines
Understand middleware pipelines that process HTTP requests and responses through ordered components for authentication, logging, routing, exception handling, and response transformation.
Start learningLogging and monitoring
Explore backend logging and monitoring practices, including structured logs, log levels, metrics, dashboards, alerting, and operational visibility into application behavior.
Start learningDistributed tracing
Learn how distributed tracing follows requests across multiple services using trace identifiers, spans, timing information, and observability platforms to diagnose latency and failures.
Start learningHealth checks
Understand application health checks for reporting service readiness and liveness, validating dependencies, and enabling orchestrators and monitoring systems to detect failures.
Start learningAPI testing fundamentals
Explore API testing fundamentals, including endpoint behavior, request construction, response assertions, status codes, test data, and positive and negative test scenarios.
Start learningUnit testing backend services
Learn how to unit test backend business logic and service classes by isolating dependencies, verifying expected outcomes, and testing edge cases with automated test frameworks.
Start learningIntegration testing
Understand integration testing for backend applications, including database connectivity, service interactions, middleware execution, and validation of multiple components working together.
Start learningAPI automation testing
Explore automated API testing using test scripts and frameworks to validate endpoints, authentication, response schemas, business rules, and regression behavior.
Start learningMocking external dependencies
Learn how to replace external services, databases, message brokers, and HTTP clients with mocks or test doubles to isolate backend tests and simulate failure scenarios.
Start learningBackend application security
Understand backend application security threats and defenses, including access control, secure configuration, dependency vulnerabilities, injection attacks, and data protection.
Start learningInput validation and output encoding
Learn how to validate untrusted input and encode output appropriately to prevent injection vulnerabilities, malformed data, and unsafe content rendering.
Start learningSQL injection prevention
Understand how SQL injection occurs and how parameterized queries, prepared statements, ORM safeguards, input handling, and least-privilege database access prevent attacks.
Start learningSecure secrets management
Explore secure management of API keys, passwords, certificates, and connection strings using environment configuration, secret managers, rotation, and restricted access.
Start learningHTTPS and TLS
Understand TLS encryption and HTTPS communication, including certificates, certificate validation, secure handshakes, encryption, and protection against network interception.
Start learningMicroservices and backend architecture
Explore microservice architecture, including independent services, domain boundaries, service ownership, distributed communication, deployment independence, and operational complexity.
Start learningAPI gateway pattern
Learn how an API Gateway provides a single entry point to backend services through request routing, authentication, rate limiting, aggregation, and cross-cutting policies.
Start learningService-to-service communication
Understand communication between backend services using synchronous HTTP or gRPC calls and asynchronous messaging, including service discovery, authentication, and failure handling.
Start learningDistributed transactions
Explore transaction coordination across multiple services and databases, including two-phase commit, eventual consistency, the Saga pattern, and compensating actions.
Start learningCircuit breaker and retry patterns
Learn resilience patterns for distributed systems, including circuit breakers, bounded retries, timeouts, fallbacks, and backoff strategies for handling service failures.
Start learningBackend scalability and reliability
Understand how backend systems handle increasing traffic and remain available through scalable architecture, fault tolerance, redundancy, load management, and resilience strategies.
Start learningLoad balancing
Explore load balancing techniques that distribute incoming traffic across backend instances, including round-robin, least connections, health checks, and session persistence.
Start learningHorizontal and vertical scaling
Compare vertical scaling, which increases resources on a single machine, with horizontal scaling, which adds instances to distribute application workloads.
Start learningContainerization with Docker
Learn how Docker packages backend applications and their dependencies into containers, including Dockerfiles, images, networking, volumes, and container execution.
Start learningBackend deployment and CI/CD
Understand backend deployment pipelines using continuous integration and continuous delivery, including automated builds, testing, artifact management, release strategies, and rollback procedures.
Start learningProduction troubleshooting
Learn how to diagnose production backend issues using logs, metrics, traces, health checks, error patterns, resource monitoring, and systematic root-cause analysis.
Start learningBuilding production-ready REST APIs
Explore how to build production-ready REST APIs by combining resource design, validation, authentication, authorization, error handling, testing, documentation, monitoring, and performance optimization.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 130 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path