dave
07/24/2018, 8:22 AMHttpHandler
which is called by APIGateway, with the proviso that you need to setup the plumbing yourself - we don't provide any tools for this (because it's very fiddly and we haven't really needed to develop any yet). We basically provide an adapter which is called by the AWS infra.
With regards to differences in the backends, in addition to performance mentioned by @s4nchez, they're mostly feature-based - for instance - Undertow provides really easy http2 support and if you want incoming http4k WebSockets then you'll need to use Jetty. Others have done work on using http4k with GraalVM - I believe that Apache will work out of the box for that. We do envisage that people will require their own setup so provide a ServerConfig
interface and default implementations (Jetty, Netty, ApacheServer, Undertow, SunHttp) for people to modify if appropriate.