From ed203e4fb5c5ba6ce6b08714f452babc6c452837 Mon Sep 17 00:00:00 2001 From: Pierre Ricadat Date: Tue, 14 May 2024 17:21:21 +0900 Subject: [PATCH] Update version in docs --- vuepress/docs/docs/README.md | 8 ++++---- vuepress/docs/docs/customization.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vuepress/docs/docs/README.md b/vuepress/docs/docs/README.md index a6b2ff7a..7435355b 100644 --- a/vuepress/docs/docs/README.md +++ b/vuepress/docs/docs/README.md @@ -79,8 +79,8 @@ The first thing we need to do is starting the Shard Manager. This component is a To make it simpler and run our example without 3rd parties, we're going to run a simple `PodsHealth` implementation that just pings a pod to see if it's alive, and in-memory `Storage`. We need a proper messaging protocol to communicate with pods, so we're going to use `shardcake-protocol-grpc`. ``` -libraryDependencies += "com.devsisters" %% "shardcake-manager" % "2.1.0" -libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-manager" % "2.3.0" +libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.3.0" ``` The Shard Manager exposes a small GraphQL API, which means we need to start a small webserver. This can be done by calling `Server.run` and providing all the required dependencies. ```scala @@ -107,8 +107,8 @@ We now need to define our **entity behavior**: what kind of messages can our ent First, we need the following dependencies: ``` -libraryDependencies += "com.devsisters" %% "shardcake-entities" % "2.1.0" -libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-entities" % "2.3.0" +libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.3.0" ``` Let's start with defining the messages our entities can receive. We will have 2: one for joining a guild and one for leaving. diff --git a/vuepress/docs/docs/customization.md b/vuepress/docs/docs/customization.md index 11f5339b..6104d63c 100644 --- a/vuepress/docs/docs/customization.md +++ b/vuepress/docs/docs/customization.md @@ -28,7 +28,7 @@ For testing, you can use the `Storage.memory` layer that keeps data in memory. Shardcake provides an implementation of `Storage` using Redis with the Redis4cats library (there's also an alternative using Redisson). To use it, add the following dependency: ```scala -libraryDependencies += "com.devsisters" %% "shardcake-storage-redis" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-storage-redis" % "2.3.0" ``` You can then simply use the `StorageRedis.live` layer. @@ -85,7 +85,7 @@ For testing, you can use the `Pods.noop` layer that does nothing. Shardcake provides an implementation of `Pods` using the gRPC protocol. To use it, add the following dependency: ```scala -libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-protocol-grpc" % "2.3.0" ``` You can then simply use the `GrpcPods.live` layer. @@ -106,7 +106,7 @@ For testing, you can use the `Serialization.javaSerialization` layer that uses J Shardcake provides an implementation of `Serialization` using the [Kryo](https://github.com/EsotericSoftware/kryo) binary serialization library. To use it, add the following dependency: ```scala -libraryDependencies += "com.devsisters" %% "shardcake-serialization-kryo" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-serialization-kryo" % "2.3.0" ``` You can then simply use the `KryoSerialization.live` layer. @@ -131,7 +131,7 @@ For testing, you can use the `PodsHealth.noop` layer that always returns true, o Shardcake provides an implementation of `PodsHealth` using the [Kubernetes](https://kubernetes.io) API. To use it, add the following dependency: ```scala -libraryDependencies += "com.devsisters" %% "shardcake-health-k8s" % "2.1.0" +libraryDependencies += "com.devsisters" %% "shardcake-health-k8s" % "2.3.0" ``` You can then simply use the `K8sPodsHealth.live` layer. This is requiring a `Pods` layer that comes from [zio-k8s](https://coralogix.github.io/zio-k8s/docs/overview/overview_gettingstarted).