awspring / spring-cloud-aws

The New Home for Spring Cloud AWS
http://awspring.io
Apache License 2.0
881 stars 298 forks source link

EventBridge implementation #1171

Open joe-chambers opened 3 months ago

joe-chambers commented 3 months ago

Type: Feature

Is your feature request related to a problem? Please describe. Not A Problem

Describe the solution you'd like I would like to see a Spring AWS implementation that provides an interface for the EventBridge

Describe alternatives you've considered The only thing I can think of is to connect directly to the AWS SDK.

Additional context N/A

MatejNedic commented 2 months ago

Hey @joe-chambers , Thanks on reaching out. could you describe what would you like to see of EventBridge integration? Also, anyone interested in defining integration please feel free to comment. :)

piyaviraj commented 2 months ago

Hi @MatejNedic,

Thanks for checking on this.

EventBridge has three main services, EventBus, Event Pipes and Event Scheduler. I think both EventBus and Event Scheduler have good use cases to provide Spring support.

  1. EventBus
    • Primary: Put Event to a configured bus
    • List rules, Put Rules, Delete Rules, Put Target, Remove Target
  2. Event Scheduler
    • I think this is the most important one since, most applications are now externalising their distributed scheduling jobs from the Spring code base in AWS infrastructure
    • Create / Delete Schedule group
    • Create a scheduled task with a target (We can start with template targets)
    • Update schedule state
    • Delete schedule

I believe this set of functionalities covers common use cases. Feel free to share any refinements or additional insights.

Thanks!

MatejNedic commented 2 months ago

Thanks @piyaviraj will evaluate it!