[event-hubs] Review samples from other languages, find gaps
See original GitHub issueCore samples (apparently):
- Sending using a batch (bare-minimum)
- Java
- JavaScript
- .NET
- Python
- Streaming send (ie, add messages to batch, handle overflow, loop through and send)
- Java
- JavaScript
- .NET
- Python
- Limited batch size
- Java
- JavaScript
- .NET
- Python
- Produce to a single partition
- Java
- JavaScript
- .NET
- Python
- Produce with a partition key
- Java
- JavaScript
- .NET
- Python
- Retry options
- Java
- JavaScript
- .NET
- Python
- WebSockets
- Java
- JavaScript
- .NET
- Python
- Publish with custom data
- Java
- JavaScript
- .NET
- Python
- Start from a custom position (sequence numbers)
- Java
- JavaScript
- .NET
- Python
- Start from a custom position (latest/earliest)
- Java
- JavaScript
- .NET
- Python
- Demonstration on how to write your own CheckpointStore
- Java (just by having InMemoryCheckpointStore in the samples folder)
- JavaScript
- .NET (concept does not apply)
- Python
- Authenticate using an Azure Identity (such as client secret)
- Java
- JavaScript
- .NET
- Python
- Basic Checkpointing while processing
- Java
- JavaScript
- .NET
- Python
- Initialize a partition using Event Processor
- Java
- JavaScript
- .NET
- Python
- Track when a partition is closed
- Java
- JavaScript
- .NET
- Python
- Process events by batch using Event Processor
- Java
- JavaScript
- .NET
- Python
Inconsistencies:
- Samples are all using different batch sizes and I think they’re all arbitrary. I’ve seen some sized at 10000, some sized at 150, etc…
- Sample file names aren’t consistent across languages which would have made this review more obvious and easier. Java’s are named
ConsumeXYZ
, Python isrecv
, ours isreceive
, .NET is using a numbering scheme. - .NET’s sample are very detailed about why things happen, etc… This does bring up that we’re all inconsistent in our comments about how we explain concepts.
Links:
.NET
- https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples
- https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples
Java
- https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/eventhubs/azure-messaging-eventhubs/src/samples/README.md
- https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/src/samples/README.md
Javascript
Python
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[Investigate] Increasing memory usage by ... - GitHub
Memory usage is increasing when there are no messages to process from EventHub. ... It can be easily reproduced with the sample console...
Read more >Distributed Tracing Deep Dive for Eventhub Triggered Azure ...
In this blog post, I will explain the correlation logic with a simple system that consists of 2 azure functions and 2 event...
Read more >Ingest data from event hub into Azure Data Explorer
Azure Data Explorer offers ingestion (data loading) from event hubs, IoT hubs, and blobs written to blob containers.
Read more >Python Guidelines: API Design | Azure SDKs
Client libraries should be consistent within the language, consistent with the service and consistent between all target languages. In cases of conflict, ...
Read more >Cherokee Gap Analysis - W3C
Does the script or language use special format patterns that are problematic (eg. 12,34,000 in India)? What about date/time formats and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The filenames for .NET are outlined in our guidelines. We’re required to use the “SampleXX_Scenario” scheme.
No worries. Always easier to critique than do the initial legwork. 😄
Done; though I took the lazy route of adding them without looking across the other languages.