question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What happens when... for JSON Batch Format.

See original GitHub issue

I have few implementation questions around json batch format.

  1. Is it expected that the receiver is delivered the array? Or can an implementation not expose batching and deliver the events one at a time?
  2. What happens when that receiver has an issue with one of n of these events? The response code should be?
  3. If a valid response is [], is that also a valid request? IE, should an SDK prevent you from sending[]?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
rperelmacommented, Jul 25, 2019

@n3wscott We do all or nothing.

0reactions
n3wscottcommented, Aug 5, 2019

The group has discussed this a lot and the end result is to leave processing model out of the CloudEvents spec. We can revisit how to process Batch in the processing model if we get to defining it.

Closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Json batch format in ODataLib - OData | Microsoft Learn
A JSON batch request has only one top level property named requests , whose value is an array containing multiple requests and multiple...
Read more >
JSON batch format - Sumo Logic Support
I'm trying to post some batches of data to an HTTP source. If I send a single JSON line, everything works fine in...
Read more >
Windows Batch - Pretty Print JSON per Script - Stack Overflow
The JSON files all aren't formatted properly, meaning there are no tab-spaces at the beginning of lines.
Read more >
Batch Job Result In Json format for both Success and Error ...
I want the BatchJob result in json format. I know i can get the result like below for number of records pass or...
Read more >
JSON is the New CSV and Streams are the New Batch
One of the big shifts in application design over the past ten years was a move to REST APIs with payloads formatted in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found