Andrei Roşca (@andrei_jdk) header
Andrei Roşca (@andrei_jdk) profile picture

Passionate Java developer. Interested in the Java platform and its ecosystem.

Chișinău
Joined September 2018
Photo by Andrei Roşca (@andrei_jdk)
📝 "Revisiting the Outbox Pattern" New blog post is out, taking a fresh look at the outbox pattern: how to implement it correctly, is it still relevant, which alternatives exist? 👉 decodable.co/blog/revisiting…
13
94
10
403
65,769
My memory sucks and Postgres locks are anything but intuitive. So I had to keep looking at Postgres docs to remind myself which operation is taking which type of lock and conflicts with what operation. Until I drew this handy Postgres-lock-cheat-sheet. Where's CREATE TABLE? It does not hold a lock on an object - because the object doesn't exist yet. It just takes a row lock on pg_tables, so you can't create another table with same name at same time.
4
22
1
155
9,824
Logical replication from stand-by servers has been one of the most awaited features in #Postgres 16. How to use it with #Debezium? Learn all about this in this two-part blog series 🤓. decodable.co/blog/logical-re…
1
12
2
73
33,016
Did you know that you can do `docker init` on your project's root and Docker will create a Dockerfile and everything? You probably didn't because it's available since like 2 hours ago. 😅
8
46
2
161
18,002
Replying to @GeoffreyDeSmet
As someone said before, loaded != initialized. Loaded even != verified, prepared, resolved. And eager loading != eager linking! I drew a diagram on this topic not too long ago based on JVM Spec / OpenJDK 20, I hope somebody finds it useful
2
69
1
220
44,148
🧵 Few things in a developer's life are as annoying as issues with their project's build tool. A build running just fine yesterday is suddenly failing? Your build is just so slooow? A quick thread with some practices I've come to value when using @ASFMavenProject 👇.
5
47
5
167
"How to design better APIs -- 15 language-agnostic, actionable tips on #REST API design" Solid advice in this article by @rbluethl 👍. Doesn't touch on HATEOAS, but I think that's fine. The industry has converged on RMM level 2. r.bluethl.net/how-to-design-…
8
48
2
187
🧵 If you run @apachekafka in production, creating clusters, topics, connectors etc. by hand is tedious and error-prone. Better rely on declarative configuration which you put into revision control and apply in an automated way, #GitOps-style. Some tools which help with that:
6
59
2
356
Quick 🧵 on what's "Head-of-Line Blocking" in @apachekafka, why it is a problem, and what some mitigation strategies are. Context: Records in Kafka are written to topic partitions, which are read sequentially by consumers. To parallelize processing, consumers can be organized in
10
96
9
382
Wow, thanks for all the replies; truly Twitter at its best 🥰! Let me try and summarize the key insights: - Loom (just like Reactive) helps to increase through-put for I/O-bound applications, i.e. their processing is dominated by file or network I/O 🧵1/5
Noob question on #Loom in context of DB-backed web apps. I understand how it lets us have 10K+ inbound HTTP connections. Won't you end up with contention on commonly used JDBC connection pools, though? E.g. you typically can't have 10K Postgres connections. What am I missing 🤔?
3
25
1
133
Andrei Roşca retweeted
What's DNS & why should I use Route 53? ⚡️ An introduction to one of the internet's core building blocks & all about Route53's feature set which greatly exceeds just simple routing.
10
102
1
448
If you didn't have the chance to watch the Spring Boot Performance Workshop we run yesterday, no worries. Here's the video recording. Enjoy watching it! youtube.com/watch?v=43qd9vLi…
2
17
3
76
Andrei Roşca retweeted
Are you a SpringBoot application Developer and want to learn how to deploy your application on Kubernetes? This 4 part Kubernetes Series would help you sivalabs.in/getting-started-… #springboot #docker #kubernetes #DevOps
20
1
100
"Distributed transaction patterns for microservices compared" Excellent in-depth write-up on approaches for coordinating data changes across multiple services, also touching on the outbox pattern with #Debezium, by @bibryam. Great stuff! developers.redhat.com/articl…
2
135
4
510
Andrei Roşca retweeted
🔹 Sorting the commented user list and deduping the users (zset) 🔹 Caching user behavior history and filtering malicious behaviors (zset, hash) 🔹 Storing boolean information of extremely large data into small space. For example, login status, membership status. (bitmap)
5
35
Andrei Roşca retweeted
Not sure if this is a controversial opinion or not: unit tests should make up a minority segment of your overall automated test suite I'd absolutely take a project with integration and no unit tests over one with unit tests but no integration tests
118
100
35
1,000
Andrei Roşca retweeted
Does autoboxing work as expected when you use #Java reflection? Not always. E. g., consider this snippet:
6
27
5
180