Senior Backend Developer Interview Questions

1,024 senior backend developer interview questions shared by candidates

Interview Question You’re a software engineer, you’re tasked with implementing a service registry and a load-balancer. We provide the interfaces below. Write in your preferred JVM language that implements the following: Interfaces interface LoadBalancer { fun selectServer(): Server? } interface ServiceRegistry { fun registerServer(server: Server): Boolean fun deregisterServer(server: Server): Boolean fun getServers(): List } data class Server(val id: String, val address: String) Load balancer and service registry should be implemented as two HTTP REST servers while calls from one to another should be done via HTTP. Tasks: Implement the ServiceRegistry and LoadBalancer interfaces. The load-balancer should have two flavors of balancing algorithm: One is round-robin and the other is random selection. Prepare a demo with curl / postman / other http tool to demonstrate the flow. Notes: You can use whatever library that you want. You are allowed to use any external tool that might help you, including Google / Stackoverflow / ChatGPT etc.. Time limits: 1h 30m
avatar

Senior Backend Developer, Core Group

Interviewed at Logz.io

4
Nov 4, 2024

Interview Question You’re a software engineer, you’re tasked with implementing a service registry and a load-balancer. We provide the interfaces below. Write in your preferred JVM language that implements the following: Interfaces interface LoadBalancer { fun selectServer(): Server? } interface ServiceRegistry { fun registerServer(server: Server): Boolean fun deregisterServer(server: Server): Boolean fun getServers(): List } data class Server(val id: String, val address: String) Load balancer and service registry should be implemented as two HTTP REST servers while calls from one to another should be done via HTTP. Tasks: Implement the ServiceRegistry and LoadBalancer interfaces. The load-balancer should have two flavors of balancing algorithm: One is round-robin and the other is random selection. Prepare a demo with curl / postman / other http tool to demonstrate the flow. Notes: You can use whatever library that you want. You are allowed to use any external tool that might help you, including Google / Stackoverflow / ChatGPT etc.. Time limits: 1h 30m

Viewing 631 - 640 interview questions

Glassdoor has 1,024 interview questions and reports from Senior backend developer interviews. Prepare for your interview. Get hired. Love your job.