Ilya Nemtsev c7591cfa34 update ktor to user Gradle (#10365) 1 week ago
..
gradle 981a75bd69 fixed older variants 11 months ago
src 1dfe734648 Make logger less spammy (#9835) 8 months ago
README.md d3644b8cbf Add tests for Ktor using an async database layer (#4247) 7 years ago
build.gradle.kts c7591cfa34 update ktor to user Gradle (#10365) 1 week ago
gradle.properties 981a75bd69 fixed older variants 11 months ago
gradlew d3644b8cbf Add tests for Ktor using an async database layer (#4247) 7 years ago
gradlew.bat d3644b8cbf Add tests for Ktor using an async database layer (#4247) 7 years ago
settings.gradle.kts 981a75bd69 fixed older variants 11 months 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