Skip to content

Conversation

@iBvishal
Copy link

Github Issue: #1890

Summary of what is done

  • Introduced a comprehensive set of Node.js examples demonstrating basic and advanced usage patterns of the Iggy client SDK.
  • Added example scripts for producers and consumers in both TypeScript and JavaScript.
  • Included a README file with instructions on running the examples and setting up the Iggy server.
  • Created a test script to validate the examples against a running Iggy server.
  • Added .gitignore and package files to manage dependencies and ignore unnecessary files.

- Introduced a comprehensive set of Node.js examples demonstrating basic and advanced usage patterns of the Iggy client SDK.
- Added example scripts for producers and consumers in both TypeScript and JavaScript.
- Included a README file with instructions on running the examples and setting up the Iggy server.
- Created a test script to validate the examples against a running Iggy server.
- Added .gitignore and package files to manage dependencies and ignore unnecessary files.
currentId++;
const payload = `message-${currentId}`;
messages.push({
payload: Buffer.from(payload, 'utf8')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payload can also be a string

@iBvishal
Copy link
Author

Working on the CR comments, will update shortly

@iBvishal iBvishal requested a review from T1B0 September 23, 2025 16:52
@iBvishal
Copy link
Author

iBvishal commented Sep 26, 2025

ping @hubcio @T1B0 @Tchoupinax

@kparisa
Copy link
Contributor

kparisa commented Nov 12, 2025

@iBvishal looks like this PR is out of date, please update

@hubcio
Copy link
Contributor

hubcio commented Nov 18, 2025

@iBvishal any plans to continue?

@dajneem23
Copy link
Contributor

@hubcio can you assign me to complete this issue ? i asked this on discord


while (sentBatches < BATCHES_LIMIT) {
const messages = [];
const sentMessages = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hubcio sentMessages and messages almost the same, can we just use one for keep it simple ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@T1B0 what do you think?

return { connectionString };
}

async function initSystem(client: Client): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks overhandled. Try/catch makes this hard to read, If creating a stream/topic fails, then the example has no reason to continue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, made the required change.

@iBvishal
Copy link
Author

@iBvishal looks like this PR is out of date, please update

working on this

@iBvishal iBvishal requested review from dajneem23 and hubcio November 22, 2025 07:59
spetz pushed a commit that referenced this pull request Dec 2, 2025
This PR delivers Node.js/TypeScript examples for the Apache Iggy SDK,
demonstrating various messaging patterns from basic operations to
advanced multi-tenant and high-volume scenarios.
References #1890 #2165
@hubcio
Copy link
Contributor

hubcio commented Dec 4, 2025

Closing this because #2394 was merged.

@hubcio hubcio closed this Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants