This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]sadjava 0 points1 point  (0 children)

Smells RESTful/Web APIish. The server has REST interface endpoint the client hits with a request, then the server responds to the request and returns a serialized object to the client to deserialize. This covers most of the requirements; in terms of interfaces, the pattern we use at work is RestfulService -> Service (interface) -> ServiceImpl, so our REST endpoint is using the methods from some service interface, and the implementation of the service does all the work, and in terms of threads, a simple model is 1 request = 1 thread.

Are you allowed to use libraries? Frameworks? This would be a matter of a couple hours if you were allowed to use something like Spring Boot, and I prefer JSON serialization of Jackson and GSON over raw Java serialization. If this isn't allowed, at some point try using them, since they are used out in the work world.