Need expert to improve my Java 8 NIO Socket my super simple api
Budget: $30 – $250 AUD
Hi
I need someone with Java 8+ Socket expertise to improve my super simple NIO Socket client and server implementations for a super simple scenario.
This socket is ONLY for passing Strings between JVMs.
The socket interface has only one method ...
public String method(String s);
Currently I have a working implementation (see attached), but I'm sure I am making "beginners mistakes".
I need someone to clean up my solution.
It needs to be clean, clear, maintainable and robust and must use "vanilla" Java 8+ Sockets.
Background notes:
Our current web application runs both the web-server and backend on the one JVM. This works nicely.
I want to split the web-server and backend onto different JVMs - on the same "localhost" / Linux server.
Existing API calls will be converted to json and the json strings will be passed between jvms via vanilla Java Sockets.
It must work on Java 8 up to J17 and hopefully J17+.
No security layer required. (this will be used only on the same Linux server / localhost).
It is a "normal" application so it needs a "good" robust solution. It does NOT need any special speed or capacity. (yes, we are currently smaller than google)
All Strings will actually be JSON.
Typical json String size is <5KB but may be up to 100KBs - sometimes there may be small (<100kb) base64 images in the json.
My working example is attached.
I need someone with Java 8+ Socket expertise to improve my super simple NIO Socket client and server implementations for a super simple scenario.
This socket is ONLY for passing Strings between JVMs.
The socket interface has only one method ...
public String method(String s);
Currently I have a working implementation (see attached), but I'm sure I am making "beginners mistakes".
I need someone to clean up my solution.
It needs to be clean, clear, maintainable and robust and must use "vanilla" Java 8+ Sockets.
Background notes:
Our current web application runs both the web-server and backend on the one JVM. This works nicely.
I want to split the web-server and backend onto different JVMs - on the same "localhost" / Linux server.
Existing API calls will be converted to json and the json strings will be passed between jvms via vanilla Java Sockets.
It must work on Java 8 up to J17 and hopefully J17+.
No security layer required. (this will be used only on the same Linux server / localhost).
It is a "normal" application so it needs a "good" robust solution. It does NOT need any special speed or capacity. (yes, we are currently smaller than google)
All Strings will actually be JSON.
Typical json String size is <5KB but may be up to 100KBs - sometimes there may be small (<100kb) base64 images in the json.
My working example is attached.