Backend Interview Questions
Dec 14, 2025 · 2 min read · backend interview api databases microservices distributed-systems performance ·Comprehensive backend interview questions covering APIs, databases, microservices, distributed systems, and performance optimization. Overview Backend development encompasses: API Design: REST, GraphQL, gRPC Databases: SQL, NoSQL, transactions, optimization Microservices: Architecture, communication, scaling …
Read MoreBackend Interview Questions - Hard
Hard-level backend interview questions covering distributed systems, advanced architecture, and complex system design. Q1: Design a distributed caching system (like Redis Cluster). Answer: graph TB A[Distributed Cache] --> B[Consistent Hashing<br/>Data distribution] A --> C[Replication<br/>High availability] A --> …
Read MoreBackend Interview Questions - Medium
Medium-level backend interview questions covering microservices, advanced databases, message queues, and performance optimization. Q1: Explain microservices architecture and its trade-offs. Answer: graph TB A[Microservices] --> B[Independent<br/>Services] A --> C[Decentralized<br/>Data] A --> …
Read MoreHard-level frontend interview questions covering advanced patterns, performance optimization, and complex architectures. Q1: Explain React Fiber architecture and reconciliation. Answer: graph TB A[React Fiber] --> B[Incremental<br/>Rendering] A --> C[Pausable Work<br/>Priority-based] A --> D[Time Slicing<br/>Smooth UI] …
Read MoreMedium-level frontend interview questions covering advanced React, Vue, state management, and performance optimization. Q1: Explain React Context API and when to use it. Answer: graph TB A[Context API] --> B[Avoid Prop<br/>Drilling] A --> C[Share Global<br/>State] A --> D[Provider-Consumer<br/>Pattern] style A …
Read MoreProtocol Buffers Interview Questions - Hard
Dec 14, 2025 · 14 min read · protobuf protocol-buffers interview hard advanced performance optimization ·Hard-level Protocol Buffers interview questions covering advanced topics, performance optimization, and complex scenarios. Q1: How does Protocol Buffer encoding work internally? Answer: Varint Encoding: Variable-length encoding for integers Smaller numbers use fewer bytes Most significant bit indicates continuation …
Read MoreEasy-level scalability interview questions covering fundamental scaling concepts. Q1: What is scalability and why does it matter? Answer: Definition: System's ability to handle increased load by adding resources. graph LR A[Small Load<br/>100 users] --> B[System] B --> C[Response Time<br/>100ms] D[Large Load<br/>10,000 …
Read MoreHard-level scalability interview questions covering extreme scale, global distribution, and advanced optimization. Q1: Design a globally distributed database with strong consistency. Answer: Challenge: CAP theorem - can't have all three (Consistency, Availability, Partition tolerance). graph TB subgraph US["US Region"] …
Read MoreMedium-level scalability interview questions covering advanced scaling techniques and optimization. Q1: Explain database partitioning strategies. Answer: graph TB A[Database<br/>Partitioning] --> B[Horizontal<br/>Partitioning] A --> C[Vertical<br/>Partitioning] B --> D1[Range<br/>Partitioning] B --> …
Read MoreA simple decorator to measure and print the execution time of any function. Useful for quick performance profiling during development. Use Case Use this when you want to quickly measure how long a function takes to execute without setting up complex profiling tools. Perfect for identifying slow functions during …
Read MoreReduce CPU/GPU voltage to lower temperatures and power consumption while maintaining performance. Why Undervolt? Benefits: Lower temperatures (5-15°C reduction) Reduced power consumption (10-30W savings) Quieter fans Extended battery life Same or better performance (less thermal throttling) Risks: System instability if …
Read MoreDatabase performance issues, solutions, and SQL vs NoSQL comparison. Common Performance Issues 1. Missing Indexes 1-- ❌ Problem: Full table scan 2SELECT * FROM users WHERE email = 'test@example.com'; 3 4-- ✅ Solution: Add index 5CREATE INDEX idx_email ON users(email); 6 7-- Verify index usage 8EXPLAIN SELECT * FROM …
Read MoreGo pprof commands and practices for analyzing CPU, memory, goroutine, and block profiles. Enable Profiling HTTP Server 1package main 2 3import ( 4 "log" 5 "net/http" 6 _ "net/http/pprof" // Import for side effects 7) 8 9func main() { 10 // Your application code here 11 12 // Start pprof server 13 go func() { 14 …
Read More