jmaver-plume / kafkajs-msk-iam-authentication-mechanism

MIT License
21 stars 26 forks source link

Question: frequent kafkajs timeouts when using with lambda #40

Closed dhvidding-accenture closed 1 year ago

dhvidding-accenture commented 1 year ago

Perhaps more of a question than an issue. I'm trying to produce to MSK using lambdas rather than a long-lived compute resource that can have a long-standing connection. I'm running into lots of timeout issues which I believe are due to these limitations with MSK and IAM. However, because I am connecting with lambda I am forced to create multiple connections:

Are there any best practices for managing connections with kafkajs and this plugin when using lambda to limit timeout errors? For example, is it better to connect outside the lambda handler to preserve the connection across the container hosting the lambda?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.