New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate all API endpoints to Fastify as secondary server #2623
Comments
#2623 When a request is made, the following error is displayed on log error--- Promise may not be fulfilled with 'undefined' when statusCode is not 204 fastify/fastify#2702
* feat: add body schema validation to login endpoint #2623 When a request is made, the following error is displayed on log error--- Promise may not be fulfilled with 'undefined' when statusCode is not 204 fastify/fastify#2702 * feat: add body schema validation to resetPassword endpoint Co-authored-by: Juan Picado <juanpicado19@gmail.com>
|
@juanpicado - how do you envision this impacting the middleware plugins? Would something like fastify-express be leveraged for compatibility? |
tbh, I have no answer yet, I haven´t experienced enough with it, but the idea is extend compability longer as possible as I try to do with all features. Express won´t go anytime soon as a default server, a lot of things still to refactor |
|
Thanks. Maybe when we eventually migrate to v6 I'll see if we can use the fastify server and take a look at what is entailed in switching the middleware plugins to be compatible with v6. I'll open a discussion if/when that occurs and if a discussion hasn't already been started. |
No discussions open yet regarding plugin future, that´s also an open topic, my position on v6 with plugins is leave it as it is (with minor improvements) and back to it on v7. |
Discussed in #2155
The current progress could be tested via
or
The main idea is launch fastify with next major but under a flag, so could be tested for a period of time until replaces completely Express server.
The main blocker of this migration, the fact some important logic still remains on express endpoints, should be ported to another place were could be reused from both servers and avoid duplication and easy testing.
Steps to migrate
tarball#2600 @juanpicadodist-tags( medium) #2638 @dianmoralesping (easy)@dianmoraleswhoami (easy)#2599/-/all(high) #2432 (usesundici+undici-fetch) @juanpicadoreadme(easy) #2613 @dianmoralesuser(easy) #2624 @dianmoralessidebar(easy) #2618 @dianmoraleslogin(easy) #2624 #2653 @dianmoralesAuthorizationvalidation@ts-ignore@verdaccio/node-api, currently is not able to enable from this API fastifyverdaccio fastifybyverdaccio --fastifyvia CLI (this will enable Docker nightly build to use Fastify)The text was updated successfully, but these errors were encountered: