Question about JSON messaging and log4j

I am a bit newer to scala and very rusty on programming after a bit away. For the sake of learning, I am setting out to do something that goes like this

  • Server A exists, sends out json message to server B

  • Server B logs time log4j, sends back the time

Some questions

  • Are there are any prototypical/relevant examples that I could be directed to in regards to one or both of the server messaging/receiving and log4j implementation to see what it would look like and potential comments?

  • I was told about play framework when I was deciding on a language. If my primary goal is to focus on web, is it the primary/most well-documented thing people use these days?

Kind of depends on your use case and preferred programming style.

If you’re building traditional websites with public-facing HTML pages, and you like the “Lightbend” style of programming (focused on Futures), I still tend to recommend Play.

If you’re building web services (that are talking to other programs), and are interested in functional-programming style, then I generally recommend http4s.

They can be mixed and matched (for example, I’ve done plenty of FP-style work with Play), and there are lots of other options, but I generally think of those as the most-common archetypes.

2 Likes

That sounds more like the direction I’ll end up going. Will try to do some more looking up on it when I get the chance.