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.

[event-hubs] Review samples from other languages, find gaps

See original GitHub issue

Core 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 is recv, ours is receive, .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

Java

Javascript

Python

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jsquirecommented, Dec 16, 2019

The filenames for .NET are outlined in our guidelines. We’re required to use the “SampleXX_Scenario” scheme.

0reactions
jsquirecommented, Dec 16, 2019

You’re right @jsquire, I’m not sure why I didn’t see those. No excuse except that after awhile of reviewing samples your mind tends to wander… (stares off into distance)

No worries. Always easier to critique than do the initial legwork. 😄

Do you mind editing the issue and adding in ones you think are critical and shared?

Done; though I took the lazy route of adding them without looking across the other languages.

Read more comments on GitHub >

github_iconTop 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 >

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