Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/telkomdev/poppy
Concurrent TCP Server with Kotlin and Coroutines
https://github.com/telkomdev/poppy
kotlin tcp tcp-server
Last synced: about 5 hours ago
JSON representation
Concurrent TCP Server with Kotlin and Coroutines
- Host: GitHub
- URL: https://github.com/telkomdev/poppy
- Owner: telkomdev
- Created: 2019-10-02T02:04:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T22:43:18.000Z (over 2 years ago)
- Last Synced: 2023-03-04T15:52:57.894Z (over 1 year ago)
- Topics: kotlin, tcp, tcp-server
- Language: Kotlin
- Size: 686 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Concurrent TCP Server with Kotlin and Coroutines
#### Getting started- clone project
```shell
$ git clone https://github.com/telkomdev/Poppy.git
```- build and download dependencies
```shell
$ mvn clean package
```- Run
```shell
$ PORT=9000 QUEUE_SIZE=100 java -jar target/Poppy-1.0-SNAPSHOT-jar-with-dependencies.jar
```- Client using `nc`
```shell
$ nc localhost 9000
$ hello
```### Docker
```
$ make build
```Run
```
$ docker run --rm -p 9000:9000 --env PORT=9000 --env QUEUE_SIZE=100 poppy
```Test it
```
$ docker exec -it CONTAINER_ID nc localhost:9000
$ hello
```