Skip to content

Instantly share code, notes, and snippets.

View vietj's full-sized avatar
🤖
Coding the Future

Julien Viet vietj

🤖
Coding the Future
View GitHub Profile
@vietj
vietj / vt.adoc
Last active October 24, 2023 07:35

Vert.x Virtual Threads

Use virtual threads to write Vert.x code that looks like it is synchronous.

You still write the traditional Vert.x code processing events, but you have the opportunity to write synchronous code for complex workflows and use thread locals in such workflows.

Introduction

One of the key advantages of Vert.x over many legacy application platforms is that it is almost entirely non-blocking (of kernel threads) - this allows it to handle a lot of concurrency (e.g. handle many connections, or messages) using a very small number of kernel threads, which allows it to scale very well.

@vietj
vietj / El Dogo.csv
Last active January 31, 2023 16:54
--- Tour 1 Tour 2 Tour 3 Tour 4 Tour 5
X=0 55.06% 30.22% 16.81% 9.21% 5.05%
X=1 0.00% 0.00% 0.00% 0.00% 0.03%
X=2 0.00% 0.00% 0.00% 0.18% 0.18%
X=3 0.00% 0.00% 0.98% 0.57% 0.39%
X=4 0.00% 5.88% 3.32% 2.18% 1.71%
X=5 34.30% 19.44% 10.67% 7.41% 4.36%
X=6 3.25% 1.83% 7.32% 5.48% 4.29%
X=7 0.31% 12.69% 9.63% 6.35% 5.56%
X=8 2.12% 14.58% 8.44% 8.81% 6.77%
@vietj
vietj / db.png
Last active June 13, 2025 08:59
Vert.x virtual thread benchmark
db.png
@vietj
vietj / index.html
Last active November 7, 2022 14:26
TFB 202-11-01 Json
<!DOCTYPE html>
<html lang="en">
<head>
<title>Perflab results</title>
<style>
body {
font-family: monospace;
font-size: 12pt;
@vietj
vietj / index.html
Last active November 7, 2022 14:26
TFB 2022-11-01 Fortunes
<!DOCTYPE html>
<html lang="en">
<head>
<title>Perflab results</title>
<style>
body {
font-family: monospace;
font-size: 12pt;
@vietj
vietj / index.html
Last active November 7, 2022 14:27
TFB 2022-11-01 Db
<!DOCTYPE html>
<html lang="en">
<head>
<title>Perflab results</title>
<style>
body {
font-family: monospace;
font-size: 12pt;
@vietj
vietj / index.html
Last active November 7, 2022 14:27
TFB 2022-11-01 Plaintext
<!DOCTYPE html>
<html lang="en">
<head>
<title>Perflab results</title>
<style>
body {
font-family: monospace;
font-size: 12pt;
Last login: Wed Oct 27 10:22:48 on ttys006
c% julien@Juliens-MacBook-Pro ~ % cd java
julien@Juliens-MacBook-Pro java % cd vertx-cassandra-client
julien@Juliens-MacBook-Pro vertx-cassandra-client % mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< io.vertx:vertx-cassandra-client >-------------------
[INFO] Building vertx-cassandra-client 4.2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
at io.smallrye.mutiny.groups.UniOnFailure.lambda$call$3(UniOnFailure.java:122)
at io.smallrye.mutiny.operators.UniOnFailureTransform$1.onFailure(UniOnFailureTransform.java:43)
at io.smallrye.mutiny.context.ContextPropagationUniInterceptor$1.lambda$onFailure$2(ContextPropagationUniInterceptor.java:36)
at io.smallrye.context.impl.wrappers.SlowContextualExecutor.execute(SlowContextualExecutor.java:19)
at io.smallrye.mutiny.context.ContextPropagationUniInterceptor$1.onFailure(ContextPropagationUniInterceptor.java:36)
at io.smallrye.mutiny.operators.UniSerializedSubscriber.onFailure(UniSerializedSubscriber.java:101)
at io.smallrye.mutiny.context.ContextPropagationUniInterceptor$1.lambda$onFailure$2(ContextPropagationUniInterceptor.java:36)
at io.smallrye.context.impl.wrappers.SlowContextualExecutor.execute(SlowContextualExecutor.java:19)
at io.smallrye.mutiny.context.ContextPropagationUniInterceptor$1.onFailure(ContextPropagationUniInterceptor.java:36)
at io.smallrye.mutiny.context.ContextPropagationUniI
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ quarkus-integration-test-hibernate-reactive-postgresql ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.quarkus.it.hibernate.reactive.postgresql.HibernateReactiveTest
2021-02-08 11:47:26,033 WARN [io.qua.dep.QuarkusAugmentor] (main) Using Java versions older than 11 to build Quarkus applications is deprecated and will be disallowed in a future release!
2021-02-08 11:47:29,020 INFO [org.hib.rea.pro.imp.ReactiveIntegrator] (main) HRX000001: Hibernate Reactive Preview
Hibernate:
drop table if exists Cow cascade