http4k
HikariCP
Our great sponsors
http4k | HikariCP | |
---|---|---|
5 | 33 | |
2,494 | 19,395 | |
0.9% | - | |
9.8 | 6.2 | |
1 day ago | 30 days ago | |
Kotlin | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
http4k
-
What's the state of server-side frameworks with Kotlin support today for small teams?
You named Express as an example for a good framework - I'd say both http4k and ktor come close to it. Spring Boot would really be on the other end and I met lots of JS/TS devs that didn't even want to touch it. I did have the same impression than you though: Documentation for ktor is not great at all.
-
Which backend Frameworks for Web App is easy to learn?
http4k has excellent documentation and very simple concepts.
- Jackson, moshi or kotlinx.serialization?
-
Application-as-a-Function Thinking
I couple of years ago I was lucky to use http4k, a server as a function web library for Kotlin. It was such a wonderful change compared to every other technologies available in both Java and Kotlin. It's simple.
Testing becomes so much easier too, as one can instantiate a the whole web routing aspect, without having to bind it to a port and having to send real http requests.
If strongly suggest people to take a look at it. It's not perfect, but it's a lot simpler than other frameworks and libraries. And it's a shift in some of the current mentality of using heavy frameworks (such as spring boot) which blow up anyone's cognitive load.
https://github.com/http4k/http4k
-
How is the market for Kotlin developers where you live?
http4k with the contract, format-jackson, and server-undertow modules
HikariCP
-
Java virtual threads caused a deadlock in TPC-C for PostgreSQL
Looks like HikariCP is also awaiting fixes for this https://github.com/brettwooldridge/HikariCP/pull/2055
- About Pool Sizing
- HikariCP maximumPoolSize based on AWS ECS number of tasks
-
Writing to db
I have used hikari and exposed to do this in the past with postgres, although other dialects are supported.
-
A Tale of Two Connection Pools
I found one suggestion from the author of HikariCP on how to address this, which I implemented and it worked. However, there are additional classes involved, and it feels a little clunky and hard to follow.
-
Spring boot change password runtime
Not really, you can change some things in spring boot but doing so will typically trigger a refresh which is less reliable than restarting but still causes a large performance hit. You could probably do it with hikari if you really needed to but it's inadvisable to build your application around this mechanic.
-
Help with bungeecord server
# https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
-
Currently load testing a Django API I don’t get good results, Help me brainstorm this
Not familiar with Python but this thread about a Java connection pool might be interesting: https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
-
Should I use diesel ORM if performance is the most important thing?
Whatever you choose, presuming your app is database heavy, I highly recommend spending time on DB schema design to make all queries as short as possible, avoid relying on transactions, and keep your connection pool tiny. For reference: https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
-
Art of README
You reminded me of the HikariCP library and it’s documentation: Clear and simple with references to other libraries trying to accomplish the same thing. It is not in the closure space though.
https://github.com/brettwooldridge/HikariCP
What are some alternatives?
ktor - Framework for quickly creating connected applications in Kotlin with minimal effort
c3p0 - a mature, highly concurrent JDBC Connection pooling library, with support for caching and reuse of PreparedStatements.
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
spring-boot-r2dbc - An example implementation of Spring Boot R2DBC REST API with PostgreSQL database.
voyager-server-spring-boot-starter - Easily create REST endpoints with permissions (access control level) and hooks includeded
Vibur DBCP - Vibur DBCP - concurrent and dynamic JDBC connection pool
vertx-lang-kotlin - Vert.x for Kotlin
JDBI - The Jdbi library provides convenient, idiomatic access to relational databases in Java and other JVM technologies such as Kotlin, Clojure or Scala.
kotlinx.html - Kotlin DSL for HTML
Flyway - Flyway by Redgate • Database Migrations Made Easy.
kraph - GraphQL request string builder written in Kotlin
jOOQ - jOOQ is the best way to write SQL in Java