Fork me on GitHub
#pedestal
<
2017-04-14
>
hlship22:04:36

I'd like to run Pedestal listening on three different ports. Each port is effectively its own server, with its own Pedestal stack ... but I'd like to have a single Jetty Server instance, and single pool of Jetty threads. Reasonable?

mtnygard22:04:32

@hlship Totally doable, with some finesse about the lifecycle functions.

mtnygard22:04:52

Basically you need to call the functions that Pedestal would normally call to create the parts.

mtnygard22:04:11

You can still use the servlet-interceptor... three of them, in fact.

mtnygard22:04:35

And once you get that hooked up as the servlet for Jetty to dispatch to, the rest is standard Pedestal code.

hlship22:04:11

I get lost a lot inside Jetty configuration; all that mutable state ...