Java, Kotlin and the JVM
25 subscribers
20 photos
2 videos
117 links
Java, Kotlin, Gradle, Maven, JDKs, Spring and the whole JVM ecosystem tips & tricks. 🇪🇸 & 🇬🇧
Download Telegram
There are several ways of keeping a cache up to date, lately CDC tools like Debezium has become trendy, and I liked this presentation where they combine Debezium, Infinispan, and Quarkus. They also shared code you can check and run.

📹https://www.youtube.com/watch?v=zOOFMHAjoPI
💻https://github.com/debezium/debezium-examples/tree/main/distributed-caching
Intresting article on how to write a language analyzer in #java

They have wrriten a Lua analyzer using ANTLR v4, they describe main components of a language parser and they implement the actual code. Really interesting.



https://dev.to/anogneva/how-to-develop-code-analyzer-in-48-hours-9ap
This blog post shows in a success story of Intersport how some use cases store data long term in Kafka with no other database. The retailer requires accurate stock info across the supply chain, including the point of sale (POS) in all international stores

https://kai-waehner.medium.com/how-the-retailer-intersport-uses-apache-kafka-as-database-with-compacted-topic-21ef67d854ac
Nice comparation of #JVM GC with other runtime by ByteByteGo
Kopy #Kotlin K2 Plugin Compailer.

Nested copies made easy in Kotlin

https://github.com/JavierSegoviaCordoba/kopy
Pinterest implementation of Tired Storage for #Kafka

With 20+ production topics onboarded since May 2024, our broker-decoupled Tiered Storage implementation currently offloads ~200 TB of data every day from broker disk to a cheaper object storage. In this blog, we share the approach we took and the learnings we gained.


https://medium.com/pinterest-engineering/pinterest-tiered-storage-for-apache-kafka-%EF%B8%8F-a-broker-decoupled-approach-c33c69e9958b
The recent JDK release, JDK 23, completely removes the COMPAT database that Elasticseach is currently using, leaving CLDR as the only option for locale data. This means we are forced to change the locale database used by Elasticsearch running on JDK 23 and above when we upgrade to use JDK 23.


Important note about running #ElasticSearch in #JDK23. It also impacts you if you are using locale from jdk internal tables
Java is used on embedded platforms for in-car infotainment and information displays, home automation and production environment edge gateways, medical devices, appliances, and the list goes on.


https://foojay.io/today/a-fresh-look-at-embedded-java/
If you want to know why LTS and semantic versioning has been a hot topic during the last week in the Java community.

Read this mail https://mail.openjdk.org/pipermail/jdk-dev/2024-October/009433.html

And also this JEP buthttps://openjdk.org/jeps/14
I haven't used Hibernate since 2018, from time to time I read something about new features and I get impressed.

Too much black magic for me, but I can see the value in certain scenarios.

https://vladmihalcea.com/hibernate-softdelete-annotation/
A record is a nominal tuple — a transparent, shallowly immutable carrier for a specific ordered sequence of elements. There are many interesting aspects of record classes, as can be read in Brian Goetz’s article, Java 14 Feature Spotlight: Records, but here we will focus on one of the lesser known aspects, record serialization, and how it differs from (and I would argue is better than) serialization of normal classes


https://docs.oracle.com/en/java/javase/21/serializable-records/index.html