@@ -62,11 +62,15 @@ In this sample, `ECHO` is the command and `Hello world!` is the parameter.
6262
6363## How is implemented?
6464
65- The protocol is implemented in Java8 , using asynchronous IO ([ netty] ( https://netty.io/ ) ), and using the
65+ The protocol is implemented in Java 8 , using asynchronous IO ([ netty] ( https://netty.io/ ) ), and using the
6666reactive programming paradigm ([ rxjava] ( http://www.rxjava.com/ ) ). What that means? It means that is single
6767thread, every request is managed inside the same thread, so there's no concurrency
6868issues at all, the same way as REDIS works.
6969
70+ ## Changes in v1.0
71+
72+ Now the minimum java version is Java 11, so previous versions are not supported anymore.
73+
7074## How can I use it?
7175
7276It's very easy, you only need 2 lines of code to start the server
@@ -77,6 +81,17 @@ It's very easy, you only need 2 lines of code to start the server
7781 server. start();
7882```
7983
84+ Since version v1.0, you can use a different concurrency model, and instead of using a single thread,
85+ enabling the ` parallelExecution ` flag the server will skip any rxjava scheduler and it will execute the
86+ command in the same netty thread, instead of serializing all the requests. This will improve the
87+ throuput.
88+
89+ ``` java
90+ RespServer server = RespServer . builder()
91+ .host(" localhost" ). port(12345 ). commands(new CommandSuite ()). parallelExecution(). build();
92+ server. start();
93+ ```
94+
8095CommandSuite is the default commands suite but you can extend and add your own commands,
8196well, that's the point :)
8297
@@ -136,12 +151,12 @@ is rejected with an error.
136151 <dependency>
137152 <groupId>com.github.tonivade</groupId>
138153 <artifactId>resp-server</artifactId>
139- <version>0.26 .0</version>
154+ <version>1 .0</version>
140155 </dependency>
141156
142157## Gradle
143158
144- compile 'com.github.tonivade:resp-server:0.26 .0'
159+ compile 'com.github.tonivade:resp-server:1 .0'
145160
146161## Stargazers over time
147162
0 commit comments