Cloudflare Interview Question

What is layer 7 and level 4 load balancing? How do they differ? How would you build a web API from scratch in your favorite language/framework? How would you structure this data in a RDB?