Skip to content

🧙‍♂️ Demo for configuring Hazelcast using a Kotlin DSL

License

Notifications You must be signed in to change notification settings

neelkamath/hazelcast-config-demo

Repository files navigation

Hazelcast Config Demo

Quick, easy, confident configuration

Cover

For developers who need to configure Hazelcast, the (Kotlin) DSL is an alternative to the previous configuration methods that covers the full API, is type-safe, and provides autocomplete. Unlike the existing configuration methods, the DSL scales well since it provides both declarative and programmatic configuration.

This demo of what Hazelcast's Kotlin DSL for configuration management could look like is shown below.

hazelcast {
    clusterName("my-cluster")
    network {
        port(5701, portCount = 105)
        if (true) // Example of conditional configuration.
            interfaces("10.10.1.*", "10.10.2.*", isEnabled = false)
    }
}

License

This project is under the MIT License.