cloudevents / cloudevents/sdk-java

How to transport List<CloudEvent> between Springboot services by openfeign?

Open
#596 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
446
Forks
172
PR merge metrics
No merged PRs in 30d

Description

As the topic.
It seems that there is no example showing how to serialize List .

Springboot's default serialization mechanism is jackson, which serializes List ,The resulted json string cannot be deserialized again to List object.

And putting all the info in the HTTP headers is not suitable for me。 Is there any way to put the event info in the HttpBody,and can seriliaze in JSON formart, transport by OpenFeign?

thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported List serialization and deserialization scenario using Spring Boot, Jackson, and OpenFeign as described in the issue. Determine whether the SDK needs an example or documentation for transporting event data in an HTTP body, and consider the work complete when a documented JSON round trip between services is demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.