Skip to content

Commit

Permalink
Update Hexagon release and improve Netty configuration (#6888)
Browse files Browse the repository at this point in the history
* Add Hexagon Toolkit (Kotlin) implementation

* Update kotlin/hexagon/build.gradle

Co-authored-by: Marwan Rabbâa <[email protected]>

* Update kotlin/hexagon/config.yaml

Co-authored-by: Marwan Rabbâa <[email protected]>

* Update kotlin/hexagon/src/main/kotlin/Benchmark.kt

Co-authored-by: Marwan Rabbâa <[email protected]>

* Fix wrong route

* Create 'server.jar' archive on build

* Update to R2 final

* Update to the latest Hexagon version

* Kotlin Hexagon: use new server adapter (Netty)

* Improve version management

* Add Jetty adapter for completeness

* Rename hexagon netty test

* Add Netty Epoll adapter benchmark

* Add Netty Epoll adapter benchmark

* Update kotlin/hexagon-netty-epoll/build.gradle

Co-authored-by: Marwan Rabbâa <[email protected]>

* Fix start up problem

* Update Hexagon version

* Update Hexagon version

* Update Hexagon version

* Add Vert.x adapter benchmark

* Add Netty async adapter benchmark

* Update Hexagon release

* Update Hexagon release and improve configuration

* Delete discarded adapters

* Improve Netty configuration

---------

Co-authored-by: Marwan Rabbâa <[email protected]>
  • Loading branch information
jaguililla and waghanza authored Nov 5, 2023
1 parent f9030a1 commit ac47a84
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kotlin/hexagon-jetty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

ext {
hexagonVersion = "3.4.1"
hexagonVersion = "3.4.3"
gradleScripts = "https://raw.githubusercontent.com/hexagonkt/hexagon/$hexagonVersion/gradle"
}

Expand Down
2 changes: 1 addition & 1 deletion kotlin/hexagon-netty-epoll/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

ext {
hexagonVersion = "3.4.1"
hexagonVersion = "3.4.3"
nettyVersion = "4.1.+"

gradleScripts = "https://raw.githubusercontent.com/hexagonkt/hexagon/$hexagonVersion/gradle"
Expand Down
8 changes: 7 additions & 1 deletion kotlin/hexagon-netty-epoll/src/main/kotlin/Benchmark.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import java.net.InetAddress

fun main() {
val textPlain = ContentType(TEXT_PLAIN)
val adapter = NettyEpollServerAdapter(executorThreads = 0)
val adapter = NettyEpollServerAdapter(
executorThreads = 0,
keepAliveHandler = false,
httpAggregatorHandler = false,
chunkedHandler = false,
enableWebsockets = false,
)
val settings = HttpServerSettings(InetAddress.getByName("0.0.0.0"), 3000)

serve(adapter, settings) {
Expand Down
2 changes: 1 addition & 1 deletion kotlin/hexagon-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

ext {
hexagonVersion = "3.4.1"
hexagonVersion = "3.4.3"
gradleScripts = "https://raw.githubusercontent.com/hexagonkt/hexagon/$hexagonVersion/gradle"
}

Expand Down
8 changes: 7 additions & 1 deletion kotlin/hexagon-netty/src/main/kotlin/Benchmark.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import java.net.InetAddress

fun main() {
val textPlain = ContentType(TEXT_PLAIN)
val adapter = NettyServerAdapter(executorThreads = 0)
val adapter = NettyServerAdapter(
executorThreads = 0,
keepAliveHandler = false,
httpAggregatorHandler = false,
chunkedHandler = false,
enableWebsockets = false,
)
val settings = HttpServerSettings(InetAddress.getByName("0.0.0.0"), 3000)

serve(adapter, settings) {
Expand Down

0 comments on commit ac47a84

Please sign in to comment.