Skip to content

Commit 50e55f4

Browse files
authored
Correct maximum event grid event size to latest value allowed by Azure Event Grid (#201)
1 parent 1a27c5a commit 50e55f4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ If you want to skip the validation then set the `Key` to _null_ in `appsettings.
239239

240240
### Size Validation
241241

242-
Azure Event Grid imposes certain size limits to the overall message body and to the each individual event. The overall message body must be <= 1Mb and each individual event must be <= 64Kb. _These are the advertised size limits. My testing has shown that the actual limits are 1.5Mb and 65Kb._
242+
Azure Event Grid imposes certain size limits to the overall message body and to the each individual event. The overall message body and each individual event must be <= 1048576 bytes (1 Mb). _These are the advertised size limits. My testing has shown that the actual limits are 1536000 bytes (1.5 Mb) for the overall message body and 1049600 bytes (1 Mb) for each individual event._
243243

244244
### Message Validation
245245

src/AzureEventGridSimulator/Infrastructure/Middleware/EventGridMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private async Task ValidateNotificationRequest(HttpContext context,
8686
// Validate the overall body size and the size of each event.
8787
//
8888
const int maximumAllowedOverallMessageSizeInBytes = 1536000;
89-
const int maximumAllowedEventGridEventSizeInBytes = 66560;
89+
const int maximumAllowedEventGridEventSizeInBytes = 1049600;
9090

9191
if (requestBody.Length > maximumAllowedOverallMessageSizeInBytes)
9292
{

0 commit comments

Comments
 (0)