Skip to content

Commit 184bfbd

Browse files
authored
Merge pull request #195 from tonivade/feature/prepare-release-v1.0
Feature/prepare release v1.0
2 parents 03b51c7 + aab74fb commit 184bfbd

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
6666
reactive programming paradigm ([rxjava](http://www.rxjava.com/)). What that means? It means that is single
6767
thread, every request is managed inside the same thread, so there's no concurrency
6868
issues 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

7276
It'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+
8095
CommandSuite is the default commands suite but you can extend and add your own commands,
8196
well, 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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.27.0-SNAPSHOT
1+
version=1.0-SNAPSHOT

0 commit comments

Comments
 (0)