
Microservices with Symfony
API Gateway, service discovery, distributed transactions, event-driven architecture, resilience patterns
1What is an API Gateway in a microservices architecture?
What is an API Gateway in a microservices architecture?
Jawaban
An API Gateway is a single entry point for all client requests to microservices. It acts as a reverse proxy that routes requests to appropriate services, handles authentication, rate limiting, caching and response aggregation. In the Symfony ecosystem, solutions like Kong, Traefik or custom implementations with Symfony can serve as a Gateway.
2Which pattern allows managing distributed transactions across multiple microservices without global locking?
Which pattern allows managing distributed transactions across multiple microservices without global locking?
Jawaban
The Saga pattern manages distributed transactions by decomposing them into a sequence of local transactions. Each service executes its local transaction and publishes an event to trigger the next one. On failure, compensating transactions are executed to undo changes. This pattern avoids distributed locks and improves availability.
3How does Symfony Messenger facilitate asynchronous communication between microservices?
How does Symfony Messenger facilitate asynchronous communication between microservices?
Jawaban
Symfony Messenger allows sending messages to external transports like RabbitMQ, Amazon SQS or Redis. Each microservice can publish messages to a bus and other services consume them asynchronously. Messages are serialized (JSON, Protobuf) and can cross service boundaries, enabling loose coupling.
What is the Circuit Breaker pattern and how to implement it with Symfony?
What is the main advantage of the Database per Service pattern in a microservices architecture?
+19 pertanyaan wawancara
Topik wawancara Symfony lainnya
Modern PHP (8.1+)
Symfony Basics
Routing & Controllers
Twig & Templates
Doctrine ORM Basics
Symfony Forms
Data Validation
Dependency Injection & Services
Security & Authentication
Doctrine Advanced
API Platform
Serializer Component
Events & Event Subscribers
Console & Commands
Messenger Component
HTTP Client
Cache & Performance
Workflow Component
Testing Symfony
Mailer Component
Translations & i18n
EasyAdmin Bundle
Symfony Architecture
Performance & Optimization
Security Advanced
Custom Bundles
Real-time & WebSockets
Deployment & DevOps
Kuasai Symfony untuk wawancara berikutnya
Akses semua pertanyaan, flashcards, tes teknis, latihan code review dan simulator wawancara.
Mulai gratis