Kamil Myśliwiec
5b220df118
build: use strict null checks part 4
2024-11-26 14:03:07 +01:00
Kamil Myśliwiec
38367e8e88
style: address spec lint errors
2024-11-26 11:57:05 +01:00
Kamil Myśliwiec
3267135f2d
chore: resolve merge conflicts
2024-11-18 12:45:34 +01:00
Kamil Myśliwiec
c239f9a037
refactor: replace inline as any calls with untyped vars
2024-11-18 10:33:51 +01:00
Kamil Myśliwiec
3dfc7fc68e
feat(microservices): add status, unwrap, on, and other features
2024-11-15 10:03:05 +01:00
Kamil Mysliwiec
5cdea22c39
Merge pull request #13468 from nestjs/revert-13467-revert-13283-fix/unnecessary-call
...
fix(microservices): delete unnecessary call of grpcClient.start
2024-11-06 12:54:35 +01:00
JadenKim-dev
ce0b4fbd88
feat: grpc package name can be specified with service name
2024-06-30 22:31:11 +09:00
Kamil Mysliwiec
75fa678e8d
Merge pull request #13368 from ssilve1989/refactor/cleanup-grpc-call-handling
...
refactor(microservices): prevent grpc write promise from throwing
2024-06-03 13:04:40 +02:00
Kamil Mysliwiec
7d5adfcc1f
Revert "Revert "fix(microservice) Delete unnecessary call of grpcClient.start""
2024-04-19 09:14:09 +02:00
Kamil Mysliwiec
044603ab7b
Revert "fix(microservice) Delete unnecessary call of grpcClient.start"
2024-04-19 09:13:10 +02:00
Steven Silvestri
22a9245a1a
refactor(microservices): prevent grpc write promise from throwing
2024-03-28 02:08:28 -06:00
YoungKi Lyu
7cd003c68d
test(microservices): Tests are also deleted
2024-03-05 21:16:17 +09:00
Kamil Myśliwiec
8d08184a34
refactor(microservices): a few minor tweaks
2023-12-18 09:12:46 +01:00
Kamil Myśliwiec
0a6853c847
Merge branch 'feature/grpc-server-package-definition' of https://github.com/krugi/nest into krugi-feature/grpc-server-package-definition
2023-12-18 09:08:02 +01:00
Ben Lesh
2e8f5cebf7
fix(microservices): fix backpressure with integration test
...
Resolves an issue where the code assumed the first value written to the stream
where `write` returned `false` was not written, when in fact it is.
Adds integration test to verify the fix.
Updates unit tests to have the proper behavior in the mock.
NOTE: This fix has been independently verified in our business environment.
NOTEx2: This is totally my (@benlesh) fault. :/
fixes #12768
2023-11-17 11:50:23 -06:00
Ben Lesh
11ded4dd9a
fix(grpc): ensure all buffered values drain
...
+ Ensures all values that are buffered while the stream is unwritable are written when the drain event fires.
+ Ensures that if the stream becomes unwritable while draining, it will wait for another drain event.
+ Ensures that if the observable completes while draining, it will wait for the entire buffer to be drained before resolving.
+ Ensures that if the observable errors while draining, it will wait for the entire buffer to be drained before rejecting.
+ Fixes tests that had some incorrect assumptions around stream write returns and the order of events.
+ Adds a more comprehensive set of tests for writing the observable to the stream.
Fixes #12751
2023-11-15 12:46:55 -06:00
Ben Lesh
7184b7b1ad
fix(grpc): will properly write to streams
...
fixes #12330
2023-08-31 15:05:24 -05:00
Ben Lesh
6c9321793c
fix: appropriately handle backpressure
...
Adds code to handle back pressure when writing output from Observable streams.
2023-08-28 18:06:59 -05:00
Kamil Myśliwiec
8857e7e950
style: apply formatting (prettier)
2023-08-28 10:47:53 +02:00
Tran Quang
1315babe48
fix(microservices): handle error thrown in the stream gRPC controller
...
Assert responseCallback called once
2023-08-25 17:06:26 +07:00
Mathieu Bergeron
93824ab4ed
feat(microservices): allow grpc-server graceful shutdown
2023-07-12 09:01:09 -04:00
Julien Sarazin
9af95fcf50
fix(microservices): grpc-server handle async interceptors
2023-04-06 16:06:34 +02:00
krugi
7de2ff29a5
feat(microservices): add package definition option to server-grpc
...
PR #8465 added support for packageDefinition for ClientGrpc, this commit adds it to ServerGrpc.
Exported common packageDefinition logic to getGrpcPackageDefinition and used it in both gRPC Server & Client, for consistency.
This change means that protoPath is now optional - getGrpcPackageDefinition verifies that either protoPath or PackageDefinition exist.
Also, fixed the error thrown from ServerGrpc.loadProto: was Error, now InvalidProtoDefinitionException, as it is in ClientGrpc
2022-11-07 16:15:34 +02:00
Kamil Myśliwiec
f8bc434bf4
test(microservices): add unit tests (populate errors by servers)
2021-01-28 14:35:02 +01:00
Gustavo Perdomo
a66a1836b8
feat: move from grpc to @grpc/grpc-js
...
build: update package dependencies
fix: use bindAsync in server-grpc
test(): server gprc port already listen error
test(): remove surplus commit
feat: fix packages
# Conflicts:
# package-lock.json
# package.json
# sample/04-grpc/package-lock.json
# sample/04-grpc/package.json
2020-07-02 11:22:53 -04:00
Artur Nerkowski
f2726c19cb
test: fix tests to make them run ootb
2020-04-20 17:04:59 +02:00
Michael Kaufman
b3df068f0b
feat(microservices): A metadata to arguments for grpc stream method
2020-02-25 17:53:55 -05:00
Kamil Myśliwiec
f7d089fc95
fix(microservices): fix unit tests, add tests for request stream
2020-01-29 23:15:21 +01:00
Kamil Myśliwiec
db0cefbc38
fix(microservices): fix client-side grpc streaming
2020-01-29 14:27:09 +01:00
Alex Dukhnovskiy
d21c86001e
fix(microcervices): fix lint
2019-10-31 20:53:51 +03:00
Alex Dukhnovskiy
ebfee28a30
Merge branch 'master' into feature/grpc-multipackage
2019-10-31 17:46:05 +03:00
Alex Dukhnovskiy
cf2c1ae626
fix(microservices): fix tests and CS grpc-multipackage
2019-10-04 10:26:44 +03:00
Kamil Myśliwiec
489d3299c0
format() run prettier, update format script
2019-10-04 09:08:27 +02:00
Kamil Myśliwiec
dd6d28972a
deps(): update to latest grpc packages
2019-07-01 15:14:45 +02:00
Kamil Myśliwiec
75c541ad30
fix(microservices): fix redis retrying strategy (recover)
2019-07-01 14:37:36 +02:00
Kamil Myśliwiec
67dacc31a0
integration(): fix grpc port conflict
2019-05-30 13:06:39 +02:00
Kamil Myśliwiec
769d7559d0
test(): add missing unit tests, resolve conflicts
2019-03-31 17:11:50 +02:00
Kamil Myśliwiec
161bbd8f5d
chore(): update deps, pin deps, bump peerDeps, fix tests
2019-03-16 19:45:15 +01:00
Anton Repin
8dbb31a0b8
Test for Server GRPC updated to handle Streaming cases
2019-03-10 23:37:34 -07:00
Kamil Myśliwiec
404afdca93
merge(): resolve conflicts
2019-02-21 09:06:25 +01:00
Anton Repin
2e7f9cbe2e
GRPC Server unit-test updated
...
Create pattern signature test updated to handle new signature for patterns.
2019-02-17 22:53:03 -08:00
Anton Repin
595bc988ec
GRPC Server test stub updated to match getServiceNames new output
2018-12-12 15:50:10 -08:00
Kamil Myśliwiec
53687ba46a
feature(websockets) extract web sockets drivers
2018-12-12 23:35:27 +01:00
Anton Repin
ea26100ec3
GRPC server tests updated:
...
- Added package recursive search test for support of proto-namespaces
- Updated tests which were testing single level proto structure
2018-12-12 13:27:06 -08:00
Kamil Myśliwiec
4796023e02
chore() resolve conflicts
2018-12-10 22:03:06 +01:00
Kamil Myśliwiec
1cb3ed7f87
refactor: general refactor reorganize, rename things
2018-11-24 16:01:29 +01:00
Kamil Myśliwiec
f802f94c0f
refactor(microservices) refactor, improvements, use es6 map
2018-10-03 22:15:29 +02:00
Kamil Myśliwiec
5b804f5a35
tests(microservices) fix broken options unit tests
2018-09-02 22:42:05 +02:00
Kamil Myśliwiec
614d57f130
feature(@nestjs) expose default exception filters
2018-07-25 18:47:40 +02:00
Michael Mrowetz
f337206785
chore(microservice) tests for grpc cancelling - server side
2018-06-09 17:25:58 +02:00