| ▲ | gavinray 2 hours ago | |||||||
It used to be the case that if you wanted to build a web service on the JVM, you wanted 2 things: 1. An HTTP server library/framework 2. A JSON library We got a decently-performing and unopionated HTTP server in JDK 18 with "HttpHandlers" and "SimpleFileServer" plus "jwebserver" CLI It later received Virtual Thread support, which made performance + scalability very competitive. With a JSON module, you finally won't NEED to rely on external deps to build a basic JVM web service without pain. Now, we just need a proper CLI framework like picocli, or at least "argparse" from Python stdlib... | ||||||||
| ▲ | drdexebtjl an hour ago | parent [-] | |||||||
My understanding from reading this is the complete opposite. This library is explicitly not supporting the features that web servers need to be performant and handle production traffic, like streaming. A web server using this could only start parsing when it receives the last byte, and could only start responding when it’s done serializing, all while holding non-lazy trees of JsonValue objects in memory. | ||||||||
| ||||||||