Billy Korando πŸƒβ˜•οΈ 🐈🐈 Profile picture
#Java Developer Advocate @Oracle β˜•οΈπŸ₯‘. @KCJUG co-organizer. Formerly; @IBM, @KeyholeSoftware, @niprcom. Opinions are my own. Trolled by @briseida_ko πŸ’

Jul 1, 2022, 7 tweets

Hey #Java Developers, β˜•οΈ

It's your Friday #SipOfJava thread! 🧢🐈

Needing to communicate with a remote service? Let's take a look at some features and APIs in Java that help with communicating with remote services!

1/

The HTTP Client added in #JDK11 improves and replaces the HttpUrlConnection, by supporting standards likes HTTP/2 and WebSocket and allowing requests to be sent synchronously and asynchronously

Article: inside.java/sip/057/

2/

Unix-Domain Socket Channels added in #JDK16 allow for fast and secure communication between Java applications when they are located on the same host. And despite their name, even work on windows!

Article: inside.java/sip/010/

3/

Serialization is an issue that has long plagued Java and is of particular concern when communicating with remote services. You can help protect your application by configuring serialization filters added in #JDK9

Article: inside.java/sip/023/

4/

Records added in #JDK16 address many of the issues related to serialization in Java. Deserializing messages into Records from a remote service can be another option.

Article: inside.java/sip/024/

5/

Serialization libraries have also begun to support Records. Here is a review of how a few popular serialization libraries support Records:.

6/

Happy coding!

7/7

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling