Skip to content

CloudEvents examples to cover most use cases #626

@salaboy

Description

@salaboy

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When looking at the CloudEvents example here: https://github.com/spring-cloud/spring-cloud-function/blob/master/spring-cloud-function-samples/function-sample-cloudevent/src/main/java/io/spring/cloudevent/DemoApplication.java

It will be great to have also the two following examples:

  1. Emitting a Cloud Event not from an incoming request (maybe using a timer)
  2. Receiving and event that doesn't return anything besides 200

Describe the solution you'd like
A clear and concise description of what you want to happen.

These two examples added to: https://github.com/spring-cloud/spring-cloud-function/blob/master/spring-cloud-function-samples/function-sample-cloudevent/src/main/java/io/spring/cloudevent/DemoApplication.java

  1. Emitting a Cloud Event not from an incoming request (maybe using a timer)
  2. Receiving and event that doesn't return anything besides 200

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

I am happy to implement the examples if I get some validations from developers that this is a good idea

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions