QuestionQ81

VerifiedConnect to and consume Azure services and third-party services

You are building a microservices-based application that uses Azure Container Apps. The application includes several containerized services that perform tasks such as processing orders, managing inventory, and generating reports. You deploy two microservices, named serviceA and serviceB, to support inventory management.

You have the following requirements:

  • serviceA and serviceB must publish events to one Azure Event Hub by using the Event Hubs SDK.
  • serviceA must publish 1,000 events per second.
  • serviceB must publish 3,000 events per second.
  • Costs must be minimized.

You need to support event publishing.

What should you do?

Explanation

Partitions provide parallel publishing paths in an event hub. Allocating one partition to the 1,000-events-per-second publisher and three partitions to the 3,000-events-per-second publisher supplies four parallel publishing paths while avoiding the additional cost and unrelated functionality of a dedicated cluster, Capture, Schema Registry, or consumer groups. In Standard tier, the namespace must also have sufficient throughput units because throughput units control total ingress capacity; each provides up to 1,000 ingress events per second. Microsoft Learn: Scaling with Event Hubs

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!