
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?
Resposta
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?
Resposta
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?
Resposta
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 perguntas de entrevista
Outros temas de entrevista Go
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
Domine Go para sua proxima entrevista
Acesse todas as perguntas, flashcards, testes tecnicos, exercicios de code review e simuladores de entrevista.
Comece gratis