Radoslav Petrov f4c05cf531 Kotlin updates Gradle and Java 11 (#4796) 6 years ago
..
gradle d3644b8cbf Add tests for Ktor using an async database layer (#4247) 6 years ago
src 73f66a5a96 use reactive-pg kotlin integration (#4283) 6 years ago
README.md d3644b8cbf Add tests for Ktor using an async database layer (#4247) 6 years ago
build.gradle f4c05cf531 Kotlin updates Gradle and Java 11 (#4796) 6 years ago
gradle.properties f4c05cf531 Kotlin updates Gradle and Java 11 (#4796) 6 years ago
gradlew d3644b8cbf Add tests for Ktor using an async database layer (#4247) 6 years ago
gradlew.bat d3644b8cbf Add tests for Ktor using an async database layer (#4247) 6 years ago
settings.gradle d3644b8cbf Add tests for Ktor using an async database layer (#4247) 6 years ago

README.md

Ktor with async postgres Benchmarking Test

Important Libraries

This sets up testing using Ktor, with a couple of async PostgreSQL clients:

  • jasync-sql A pure Kotlin MySQl/PostgreSQL client, with coroutines integration
  • reactive-pg-client A mature async PostgreSQL client with pipelining and batch support

Test URLs

JSON

http://localhost:8080/json

PLAINTEXT

http://localhost:8080/plaintext

DB

http://localhost:8080/db

QUERY

http://localhost:8080/query?queries=

UPDATE

http://localhost:8080/update?queries=

FORTUNES

http://localhost:8080/fortunes