Are there any dropwizard admin like plugins for ht...
# http4k
t
Are there any dropwizard admin like plugins for http4k? I'm trying to make a dropwizard app go away, but the main reason for DW is the http admin server that allows for heap-dumps, thread-dumps etc. Is there anything like that already existing?
d
I agree with @James Richardson - but to answer you directly - no there isnt, although I have done something similar in the past with the openapi module and ui as a simple interface
t
Convincing others on the team is the real thing. It's rarely used if ever. its just something they can do it they think they wanted to. I'd personally just hop into the container and jcmd it. To be fair, I'm new at this company, and have very little experience w/ their prod systems still. It's a feature I'd have to clone at least initially to make the conversion easier for them to swallow.
I just peeked at how DW does it. They have a complete standalone jar that has a servlet in it.
so.. I could theoretically import that into a http4k server instance and make it look the same
d
you can easily design it as a standalone module and just "mix" it in to the rest of the app. We do a similar thing with Kubernetes health routes
t
Is there a simple bridge for Servlet -> httpHnadler?
I see there's an opposite
The silly thing is a servlet, complete with Context init parameters. 🙂
d
Erm - we've never had that before! Although it should be trivial to write.
t
wow.. HttpServletRequest has a TON of things to implement
d
Are you sure it wouldn't be easier to just rip the functionality out one layer down?
Assuming there is a layer...
t
yah.. it would be.. Just basically clone it
yeah. these are mostly really thin servlets.