Answer the question
In order to leave comments, you need to log in
Is Netty suitable as an HTTP server?
As an option for the development of my project, I consider Netty (4 versions) as an HTTP server.
Its task will be the following:
1) When accessing the site, the client will be given a "large" javascript, in which interaction with the system services will be implemented (for example, services can be: user data; list of documents; documents; sending mail, etc.).
2) The appeal to each of the services also passes through the Netty server, which stores the state of the connection / session, generates a request to the service and generates a response to the client.
Question one: is Netty up to the task?
Question two: perhaps someone has done a similar task and can give examples of the implementation of such an approach.
Answer the question
In order to leave comments, you need to log in
Fits just great.
I advise you to look at the Play2 framework, jooq, liquibase and Akka.
What does "service" mean? The final resful url on which json data will be pulled, for example?
First, it fits. Netty implements normal http (cookies, http header, etc...) but nothing more. Everything else you will have to implement yourself. There are no sessions for example, so you have to do them yourself.
You will have to make routes to map the url to the handler you need, or if the url does not fit more than one criterion, give 404 ..
A lot of things will need to be done from scratch.
In fact, you want to write a mini framework, but there are too many underwater nuances.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question