mdedetrich commented on PR #226: URL: https://github.com/apache/incubator-pekko-connectors/pull/226#issuecomment-1686461378
@jtjeferreira So I did a bit of digging for some existing art, i.e. some other connector which has a similar problem (i.e. wrapping some other library that is internally blocking) and I came across the jms-connector, specifically https://github.com/apache/incubator-pekko-connectors/blob/a5796711f4b19f358f976b189581b980da34b2b0/jms/src/main/scala/org/apache/pekko/stream/connectors/jms/impl/JmsConnector.scala#L239-L252 Using the above for inspiration, at https://github.com/apache/incubator-pekko-connectors/blob/c207c292ee9fecec2444637c84d63b9127280422/kinesis/src/main/scala/org/apache/pekko/stream/connectors/kinesis/scaladsl/KinesisSchedulerSource.scala#L49 you can access the actor attributes to create a proper `executionContext` which is explicitly designed for these IO blocking operations and just pass it in the `KinesisSchedulerSourceStage`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
