Soru

Zorluk: OrtaDecoupling Architectures and Event-Driven Messaging

A media streaming company is building a real-time multiplayer gaming platform. The system must process player movement and action events in the exact chronological order they are received to maintain game state consistency. Additionally, the system must broadcast these events to a live leaderboard service and a security auditing service. Which combination of actions should a solutions architect recommend to meet these requirements? (Select TWO.)

  1. Create an Amazon SNS FIFO topic and publish the game events to it.Cevap
  2. Create Amazon SQS FIFO queues, subscribe them to the SNS FIFO topic, and configure the downstream services to consume messages from these queues.Cevap
  3. C
    Create a standard Amazon SNS topic to publish the game events and fan them out to standard Amazon SQS queues.
  4. D
    Create a standard Amazon SQS queue to buffer game events and configure the downstream services to poll the queue directly.
  5. E
    Create an Amazon EventBridge event bus with a custom rule to route messages directly to the target services.

Cevap

Create an Amazon SNS FIFO topic to receive the game events, and create Amazon SQS FIFO queues subscribed to the topic for downstream services to consume.
To achieve ordered processing and fan-out, the architecture must combine an Amazon SNS FIFO topic and Amazon SQS FIFO queues. An SNS FIFO topic ensures that message ordering is maintained when fanning out to multiple subscribers. Subscribing SQS FIFO queues to this topic ensures that downstream services consume the events in the exact chronological sequence they were published.

Adım Adım Çözüm

1
Analyze the ordering and fan-out requirements.
Identified that game events must be processed in strict chronological order and distributed to multiple downstream services (leaderboard and auditing).
This establishes that a FIFO (First-In-First-Out) messaging mechanism is required alongside a pub/sub fan-out pattern.
2
Select the appropriate pub/sub service.
Choose Amazon SNS FIFO topics to enable ordered fan-out.
Standard SNS topics do not guarantee message ordering, whereas SNS FIFO topics maintain the sequence of messages for all subscribed queues.
3
Select the appropriate queue type for the subscribers.
Choose Amazon SQS FIFO queues as subscribers to the SNS FIFO topic.
SNS FIFO topics only support SQS FIFO queues as subscribers, which ensures that the strict message order is preserved end-to-end for downstream consumers.

Anahtar Kavram

Decoupling with SNS FIFO and SQS FIFO for ordered fan-out architectures.
Bu soruyu puanla