node-rdkafka icon indicating copy to clipboard operation
node-rdkafka copied to clipboard

[FEATURE REQUEST] Provide prebuilt binaries for each target triples

Open 5d-jh opened this issue 1 year ago • 4 comments

What Provide librdkafka and its bindings as binary on release assets. Like swc-project.

Why To speed up postinstall operation and avoid tackle with compilation errors/warnings.

How When merged into master branch, compile native code and publish onto releases page.

Add postinstall script to download binary for suitable platform, using prebuild-install cli.

5d-jh avatar May 14 '24 16:05 5d-jh

It'd be better to use prebuildify. A post install script to download binaries from a web site is not a great experience.

See https://github.com/newrelic/node-native-metrics/pull/238 for one such conversion.

jsumners-nr avatar May 29 '24 17:05 jsumners-nr

When building multi platform docker images this would make things so much faster as generally you'll have to deal with some evel of emulation and builds take forever when building over emulation (10m+ on M1 Max for amd64)

wSedlacek avatar Nov 20 '24 01:11 wSedlacek

You can try https://github.com/confluentinc/confluent-kafka-javascript

hverlin avatar Nov 20 '24 03:11 hverlin

You can try https://github.com/confluentinc/confluent-kafka-javascript

Thank you so much! Having the not having prebuilt binaries was a major pain point and this library makes all that go away, don't even need to install any -dev libs.

You saved my PR <3

wSedlacek avatar Nov 20 '24 07:11 wSedlacek