You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the Lua SDK to build against the C++ Server-side SDK
with Redis via its provided C bindings.
feat: added `makeContext` for constructing single or multi-kind contexts
refactor!: SDK configuration exposes new options and is organized hierarchically
refactor!: remove `inlineUsersInEvents` and `userKeysFlushInterval` config options
refactor!: remove global `registerLogger` function, replace with config option
refactor!: remove `alias` function, replace usage with multi-kind contexts
refactor!: Variation and VariationDetail now take contexts
refactor!: makeUser behavior modified to construct a user-kind context
| C++ Server-Side SDK |[3.3.0](https://github.com/launchdarkly/cpp-sdks/releases/tag/launchdarkly-cpp-server-v3.3.0)| Required dependency. |
29
+
| C++ Server-Side SDK with Redis |[2.1.0](https://github.com/launchdarkly/cpp-sdks/releases/tag/launchdarkly-cpp-server-redis-source-v2.1.0)| Optional, if using Redis as a data source. |
30
+
31
+
32
+
3rd Party Dependencies
33
+
------------
34
+
Depending on how the C++ server-side SDK was built, the Lua SDK may require additional runtime dependencies to work properly.
35
+
36
+
37
+
| Dependency | If C++ SDK compiled with.. | Notes |
| OpenSSL |`LD_DYNAMIC_LINK_OPENSSL=ON`| If linking OpenSSL dynamically, it must be present on target system. |
40
+
| Boost |`LD_DYNAMIC_LINK_BOOST=ON`| If linking Boost dynamically, it must be present on the target system. |
41
+
42
+
_Note: The CI process builds against the C++ Server-side SDK's Linux shared libraries, which were compiled with `LD_DYNAMIC_LINK_BOOST=ON` so
43
+
Boost is fetched as part of the build process._
44
+
23
45
24
46
Getting started
25
47
-----------
26
48
27
49
Refer to the [SDK documentation](https://docs.launchdarkly.com/sdk/server-side/lua#getting-started) for instructions on getting started with using the SDK.
2. Build the [C++ Server-side SDK](https://github.com/launchdarkly/cpp-sdks) from source using CMake, or obtain pre-built artifacts from the [releases page](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-server%22)
54
+
3. Run `luarocks make`:
55
+
```bash
56
+
# Base SDK
57
+
luarocks make launchdarkly-server-sdk-1.0-0.rockspec \
58
+
LD_DIR=./path-to-installed-cpp-sdk
59
+
60
+
# SDK with Redis
61
+
luarocks make launchdarkly-server-sdk-redis-1.0-0.rockspec \
62
+
LDREDIS_DIR=./path-to-installed-cpp-sdk
63
+
```
64
+
65
+
Please note that the Lua SDK uses the C++ server-side SDK's C bindings, so if you're using prebuilt artifacts
0 commit comments