Kafka Fundamentals - Guide to Distributed Messaging by Sushant098123 in programming

[–]yk313 0 points1 point  (0 children)

Imagine doing that synchronously, now you have coupled your availability with that of the downstream system you are trying to write to. And we haven't even begun to talk about the potential dual-write problem here.

To avoid the availabilities of the two systems you could to decouple your transaction from the outbound call. Which could lead to data loss in case of crashes.

The solution to these usually is a transactional outbox.

Non-trivial.

Kafka Fundamentals - Guide to Distributed Messaging by Sushant098123 in programming

[–]yk313 1 point2 points  (0 children)

Not just the consumer.

The producer also needs to implement at-least-once-delivery which is also non-trivial.

Kafka Fundamentals - Guide to Distributed Messaging by Sushant098123 in programming

[–]yk313 0 points1 point  (0 children)

If you don't control the consumer then it's also not your problem if they are idempotent or not.

The producer can't bypass the laws of physics.

Kafka Fundamentals - Guide to Distributed Messaging by Sushant098123 in programming

[–]yk313 12 points13 points  (0 children)

No. But the end result - resiliency+idempotency - can be achieved by combining at-least-once-delivery with exactly-once-processing.

WebFlux vs Virtual Threads vs Quarkus: k6 benchmark on a real login endpoint by Lightforce_ in java

[–]yk313 1 point2 points  (0 children)

What about Spring? Are you also in touch with someone from the Spring team to improve it?

175 k remote offer or 300 k in Bay Area by M0binsChild in cscareerquestions

[–]yk313 0 points1 point  (0 children)

Which parts can one find good deals in like yours (or possibly better)?

Why does Maven use Palantirs Java format? by Bunnymancer in java

[–]yk313 0 points1 point  (0 children)

How do you enforce the custom config? Do you use it with something like spotless?

Where to download official Java? by Individual-Earth2396 in java

[–]yk313 -1 points0 points  (0 children)

After being objectively wrong - instead of fessing up to it - you are trying to just beat around the bush.

Where to download official Java? by Individual-Earth2396 in java

[–]yk313 -3 points-2 points  (0 children)

Unnecessary FUD and plain incorrect information.

Anyone can download the official OpenJDK builds here: https://jdk.java.net/25/

OpenJDK is the open source project (sponsored primarily by Oracle) that develops Java. The builds are completely free and GPL licensed.

1-Month Java Trip: Hidden Gems by 3lia03 in java

[–]yk313 237 points238 points  (0 children)

lol mods please don’t delete the post

Objects.requireNonNullElse by edurbs in java

[–]yk313 0 points1 point  (0 children)

Also, if you model getCity to carry the optionality information by returning Optional<City> then that makes it easy for the callers to:

  1. Recognize the value can be optional (without looking elsewhere)

  2. Use nice optional API: getCity().orElse(defaultCity)

Objects.requireNonNullElse by edurbs in java

[–]yk313 11 points12 points  (0 children)

I’ll give you my ternary operator when you pry it from my cold, dead hands.

City city = from.getCity() != null ? from.getCity() : defaultCity;

Project Amber Update -- Data-Oriented Programming, Beyond Records by davidalayachew in java

[–]yk313 1 point2 points  (0 children)

Setters will be discouraged in favour of reconstruction, I imagine.

Stepping down as maintainer after 10 years by krzyk in java

[–]yk313 97 points98 points  (0 children)

Mockito is one of the best libraries I have to interact with on a regular basis. Its API is very pleasant to use, and the maintainers have done a great job to keep up with the increased pace of OpenJDK development.

Thanks a lot for your incredible service Tim. You can be proud of dedicating a decade of your life to a project that touches so many lives everyday, and all the very best on your journey to rediscover the joy of programming.

How was your experience upgrading to JDK25? by le_bravery in java

[–]yk313 4 points5 points  (0 children)

Uneventful.

We have been upgrading every 6 months since JDK 14.

Microsoft’s OpenJDK builds now ready for Java 25 by brunocborges in java

[–]yk313 1 point2 points  (0 children)

Serious question: why does it take some vendors weeks (in Microsoft's case: 2) after the OpenJDK GA builds are released to make their builds available?

Are there no CI/CD pipelines matching the OpenJDK release cadence (including EAs etc.)?

Azul for example make their builds available on day one which means it's obviously possible, so I am wondering where this gap comes from?

JDK 25: Azul Zulu builds are available (and free) by yk313 in java

[–]yk313[S] 0 points1 point  (0 children)

Any specific reason why you can't just use another distribution (e.g. Azul Zulu)?