From 4f5f72fd338e63a430d847689434b1da7412dd14 Mon Sep 17 00:00:00 2001 From: Jorge Bay Gondra Date: Thu, 9 Jul 2020 12:55:50 +0200 Subject: [PATCH 1/3] Include information for Cassandra-as-a-Service --- docs/src/main/paradox/configuration.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/src/main/paradox/configuration.md b/docs/src/main/paradox/configuration.md index 3a1a0ef91..b1d33a625 100644 --- a/docs/src/main/paradox/configuration.md +++ b/docs/src/main/paradox/configuration.md @@ -49,3 +49,27 @@ Alternatively, Akka Discovery can be used for finding the Cassandra server conta in the @extref:[Alpakka Cassandra documentation](alpakka:cassandra.html#using-akka-discovery). Without any configuration it will use `localhost:9042` as default. + +## Using Cassandra-as-a-Service + +You can spin up a free Apache Cassandra cluster in the cloud using [DataStax +Astra](https://www.datastax.com/products/datastax-astra). To use a Cassandra-as-a-Service cluster as Akka persistence, +specify your secure connect bundle and credentials in your configuration instead of the contact points: + +``` +datastax-java-driver { + basic { + session-keyspace = my_keyspace + cloud { + secure-connect-bundle = /path/to/secure-connect-database_name.zip + } + } + advanced { + auth-provider { + class = PlainTextAuthProvider + username = user_name + password = p@ssword1 + } + } +} +``` \ No newline at end of file From 89a89a48b95ad4b1b50db0aa77374d8a9d81d3b6 Mon Sep 17 00:00:00 2001 From: Jorge Bay Gondra Date: Thu, 6 Aug 2020 11:51:21 +0200 Subject: [PATCH 2/3] Use placeholders for user name and password --- docs/src/main/paradox/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/paradox/configuration.md b/docs/src/main/paradox/configuration.md index b1d33a625..fab20289e 100644 --- a/docs/src/main/paradox/configuration.md +++ b/docs/src/main/paradox/configuration.md @@ -67,8 +67,8 @@ datastax-java-driver { advanced { auth-provider { class = PlainTextAuthProvider - username = user_name - password = p@ssword1 + username = + password = } } } From a45e33960a2283b45e0dbf612a57895764004149 Mon Sep 17 00:00:00 2001 From: Jorge Bay Gondra Date: Thu, 6 Aug 2020 13:12:04 +0200 Subject: [PATCH 3/3] Dedicated page for CaaS --- docs/src/main/paradox/astra.md | 23 +++++++++++++++++++++++ docs/src/main/paradox/configuration.md | 24 ------------------------ docs/src/main/paradox/index.md | 1 + 3 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 docs/src/main/paradox/astra.md diff --git a/docs/src/main/paradox/astra.md b/docs/src/main/paradox/astra.md new file mode 100644 index 000000000..7a4bedeb2 --- /dev/null +++ b/docs/src/main/paradox/astra.md @@ -0,0 +1,23 @@ +# DataStax Astra + +You can spin up a free Apache Cassandra cluster in the cloud using [DataStax +Astra](https://www.datastax.com/products/datastax-astra). To use a Cassandra-as-a-Service cluster as Akka persistence, +specify your secure connect bundle and credentials in your configuration instead of the contact points: + +``` +datastax-java-driver { + basic { + session-keyspace = my_keyspace + cloud { + secure-connect-bundle = /path/to/secure-connect-database_name.zip + } + } + advanced { + auth-provider { + class = PlainTextAuthProvider + username = + password = + } + } +} +``` diff --git a/docs/src/main/paradox/configuration.md b/docs/src/main/paradox/configuration.md index fab20289e..3a1a0ef91 100644 --- a/docs/src/main/paradox/configuration.md +++ b/docs/src/main/paradox/configuration.md @@ -49,27 +49,3 @@ Alternatively, Akka Discovery can be used for finding the Cassandra server conta in the @extref:[Alpakka Cassandra documentation](alpakka:cassandra.html#using-akka-discovery). Without any configuration it will use `localhost:9042` as default. - -## Using Cassandra-as-a-Service - -You can spin up a free Apache Cassandra cluster in the cloud using [DataStax -Astra](https://www.datastax.com/products/datastax-astra). To use a Cassandra-as-a-Service cluster as Akka persistence, -specify your secure connect bundle and credentials in your configuration instead of the contact points: - -``` -datastax-java-driver { - basic { - session-keyspace = my_keyspace - cloud { - secure-connect-bundle = /path/to/secure-connect-database_name.zip - } - } - advanced { - auth-provider { - class = PlainTextAuthProvider - username = - password = - } - } -} -``` \ No newline at end of file diff --git a/docs/src/main/paradox/index.md b/docs/src/main/paradox/index.md index b9d1d14dc..0abce4cec 100644 --- a/docs/src/main/paradox/index.md +++ b/docs/src/main/paradox/index.md @@ -17,6 +17,7 @@ The Akka Persistence Cassandra plugin allows for using [Apache Cassandra](https: * [Health check](healthcheck.md) * [Configuration](configuration.md) * [CosmosDB](cosmosdb.md) +* [DataStax Astra](astra.md) * [ScyllaDB](scylladb.md) * [Migrations](migrations.md)