MediumTechnical
1
178
Explain event loop in Node.js
How does the event loop work in Node.js? Explain the different phases and how async operations are handled.
Amazon
Backend Engineer
Backend development questions on server-side programming, APIs, databases, authentication, and microservices architecture.
5
Questions in database
How does the event loop work in Node.js? Explain the different phases and how async operations are handled.
Write a Python decorator that caches function results with configurable TTL and max size. Handle edge cases.
Compare SQL and NoSQL databases. When would you choose one over the other? Give examples of each type.
Compare REST and GraphQL APIs. What are the pros and cons of each approach? When would you choose one over the other?
What is the Global Interpreter Lock in Python? How does it affect multi-threaded programs and what are the workarounds?