A recruiter contacted me for an interview. The technical screen was Code Craft, and the task was bootstrap.
I wrote Java on HackerRank. There were three upstream services—consumer, payment, and address—and their APIs were already provided. I had to combine them into a response and return it. The coding itself was not difficult.
The tricky part was the status codes. Catching exceptions alone was not enough; I also had to check whether the HTTP status was 2xx. If consumer failed, I could return 500 directly. If payment or address failed, I needed to retain the other fields.
After I finished, the follow-ups covered whether to retry or drop a request, how to handle timeouts, partial responses, and whether address contained first name and last name.
It had been too long since I last wrote concurrent Java, so I got stuck on concurrency for quite a while. I also only ran the happy-path test.
I probably failed.
Discussion
Loading comments…