Skip to content

Demo app that uses AWS EventBridge, AWS SQS, and Scala 3 to ping and pong an ever incrementing integer.

Notifications You must be signed in to change notification settings

bbstilson/eventbridge-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventBridge -> SQS PingPong

Demo app that uses AWS EventBridge, AWS SQS, and Scala 3 to ping and pong an ever incrementing integer.

      +-----> +1 +-----+
      |                |
      |                v
+-----+-----+    +-----+-----+
|           |    |           |
|  Primary  |    | Secondary |
|           |    |           |
+-----+-----+    +-----+-----+
      ^                |
      |                |
      +-----+ +1 <-----+

SQS Queue -> Scala -> EventBridge -> SQS Queue ♲

Running

sbt run

EventBridge Rules

Rule 1

brandon_funland_primary

Event Pattern

{
  "source": [
    "funland-primary"
  ]
}

Target

Type Name Input
SQS queue s2-BrandonsFunLand-secondary Part of the matched event: $.detail

Rule 2

brandon_funland_secondary

Event Pattern

{
  "source": [
    "funland-secondary"
  ]
}

Target

Type Name Input
SQS queue s2-BrandonsFunLand Part of the matched event: $.detail

About

Demo app that uses AWS EventBridge, AWS SQS, and Scala 3 to ping and pong an ever incrementing integer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages