Closed whtiehack closed 6 years ago
We are looking for a new framework to start a new project. I would like to know if this framework has been stress tested. Because of the large amount of traffic in our project, it is very cautious to choose what framework to use. Is there any data to look at? Our focus is on gateway(websocket) and microservices(tcp).ðŸ˜
Thanks for reporting, I'm on it.
However, Nest microservices strategies are good for prototyping. Still, I'd recommend using a mature solution like, for example, NATS and plug it into Nest as a Custom Transport Strategy (which should be very easy). It will change in the incoming release (v5.0.0
) where microservices will offer much more than before.
@kamilmysliwiec Thanks for the answer, I thought of a solution.Thanks.
The microservices
package has been completely rewritten under the hood. With v5.0.0
this bug is fixed (v5 is available already as 5.0.0-beta.1
in NPM, docs are here https://docs.nestjs.com/v5/)
like it: https://github.com/Netflix/Hystrix
When the load is too high, the VIP access is guaranteed. What am I supposed to do?
@kamilmysliwiec
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm submitting a...
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
Client
Server
test code
What is the motivation / use case for changing the behavior?
i think the problem is .. https://github.com/nestjs/nest/blob/7bb35c0b387b46a49ce6d5cdaf039bbfb2da7762/src/microservices/server/server.ts#L25-L36 https://github.com/nestjs/nest/blob/7bb35c0b387b46a49ce6d5cdaf039bbfb2da7762/src/microservices/server/server.ts#L34
client: https://github.com/nestjs/nest/blob/7bb35c0b387b46a49ce6d5cdaf039bbfb2da7762/src/microservices/client/client-tcp.ts#L40-L63
https://github.com/nestjs/nest/blob/7bb35c0b387b46a49ce6d5cdaf039bbfb2da7762/src/microservices/client/client-tcp.ts#L58-L59
If i want to re-implement
ClientProxy
andCustomTransportStrategy
will modifyserver.ts
andclient-proxy.ts
.i want use my own implement , how can i do? https://github.com/whtiehack/pinus/blob/master/packages/pinus-rpc/lib/rpc-server/acceptors/tcp-acceptor.ts
https://github.com/whtiehack/pinus/blob/master/packages/pinus-rpc/lib/rpc-client/mailboxes/tcp-mailbox.ts
https://github.com/whtiehack/pinus/blob/master/packages/pinus-rpc/lib/util/composer.ts
Environment