The foundationdb client is currently quite difficult to deploy because it requires the user to first install the foundationdb client (or at least a local copy of libfdb_c matching the version of their database).
Now that fdb_c is on the official download page for all major systems, another option has opened up. The node bindings could:
- Accept one or many fdb server version numbers (eg
6.0.15) before trying to connect
- Download a copy of
fdb_c for your OS & database version from the official website, downloading the file into some temporary / cache directory.
- Set
NetworkOptions.external_client_directory to that directory
- Then connect as normal
Thanks to the prebuildify process, this would allow the fdb bindings to work without any external system configuration. You could just npm install foundationdb and then (after specifying a few versions on startup / through environment variables), you could connect directly to your fdb server. On first connect the client would download an ~8MB library file, but after that it'd be smooth sailing.
This would also make it way easier to deploy to AWS or heroku or whatever.
Anyway, if anyone wants to have a go at this, it'd be a great first issue to help out with!
The foundationdb client is currently quite difficult to deploy because it requires the user to first install the foundationdb client (or at least a local copy of
libfdb_cmatching the version of their database).Now that fdb_c is on the official download page for all major systems, another option has opened up. The node bindings could:
6.0.15) before trying to connectfdb_cfor your OS & database version from the official website, downloading the file into some temporary / cache directory.NetworkOptions.external_client_directoryto that directoryThanks to the prebuildify process, this would allow the fdb bindings to work without any external system configuration. You could just
npm install foundationdband then (after specifying a few versions on startup / through environment variables), you could connect directly to your fdb server. On first connect the client would download an ~8MB library file, but after that it'd be smooth sailing.This would also make it way easier to deploy to AWS or heroku or whatever.
Anyway, if anyone wants to have a go at this, it'd be a great first issue to help out with!