3 Configuring microservices

This chapter covers

  • Externalized configuration
  • MicroProfile Config
  • Accessing application configuration
  • Configuration sources
  • Quarkus configuration features
  • Using Kubernetes ConfigMaps and Secrets

Chapter 2 introduced the Account service, which runs both locally and in Kubernetes. It can run in many more than two contexts, as shown next. Each context varies, having external services like a database, messaging system, and backend business microservices. The Account service has to interact with each service in its context, each with configuration requirements.

Figure 3.1 represents how enterprises may use different databases depending on the context. The developer uses a local desktop database during development, like ...

Get Kubernetes Native Microservices with Quarkus and MicroProfile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.