
Microservices
Service architecture, discovery, communication, API gateway, circuit breaker, observability, structured logging, metrics, distributed tracing
1What is the main difference between monolithic and microservices architecture?
What is the main difference between monolithic and microservices architecture?
Antwoord
In microservices architecture, the application is decomposed into independent services that can be developed, deployed and scaled separately, unlike monoliths where all code is in a single process. Each microservice has its own database and communicates via APIs. This enables better scalability, resilience and technology flexibility, but introduces increased operational complexity.
2What is the main role of service discovery in microservices architecture?
What is the main role of service discovery in microservices architecture?
Antwoord
Service discovery enables services to locate each other dynamically without hardcoded configuration. Services register with a registry (Consul, etcd, Eureka) with their IP address and port. Clients query the registry to get available instances. This facilitates horizontal scaling, continuous deployment and resilience in case of instance failure.
3In microservices architecture, which pattern manages distributed data consistency without ACID transactions?
In microservices architecture, which pattern manages distributed data consistency without ACID transactions?
Antwoord
The Saga pattern manages distributed data consistency via a sequence of local transactions. Each service executes its transaction and publishes an event. If a step fails, compensating transactions undo previous changes. Implementations can be orchestrated (central coordinator) or choreographed (pub/sub events). This guarantees eventual consistency without distributed locks.
Which Go library is commonly used to implement service discovery with Consul?
What is the main difference between synchronous (REST/gRPC) and asynchronous (messaging) communication between microservices?
+21 gespreksvragen
Andere Go-sollicitatieonderwerpen
Go Basics
Go Data Structures
Go Interfaces
Error Handling
Goroutines Basics
Channels
Go Modules
HTTP Server
HTTP Client
JSON Encoding
database/sql
Context Package
Testing
Concurrency Patterns
Sync Primitives
Go Web Frameworks
REST API Design
gRPC
Reflection
Memory Management
Performance Optimization
Generics
Go Design Patterns
Security & Authentication
Docker & Containerization
Kubernetes Basics
Advanced Go
CLI Development
Beheers Go voor je volgende gesprek
Krijg toegang tot alle vragen, flashcards, technische tests, code review-oefeningen en gespreksimulatoren.
Begin gratis