Skip to main content
Back to track
Backend Engineer

Theoretical questions

The 20 theoretical questions asked most often today. Open a question to read the full answer.

05

Offset vs cursor pagination

EasyAPI designPaginationSQL

What's the difference between offset and cursor (keyset) pagination, and when do you use each?

14

Sharding and consistent hashing

HardDatabasesShardingScaling

What is sharding, how do you choose a shard key, and what problem does consistent hashing solve?

16

Rate limiting algorithms

MediumRate limitingAPIAlgorithms

How do you implement rate limiting? Compare the main algorithms.

19

Monolith vs microservices

MediumArchitectureMicroservices

Monolith or microservices: what are the trade-offs, and how do you decide?