Commit Graph

76 Commits

Author SHA1 Message Date
Kamil Myśliwiec
10fdf16c47 build: use strict null checks part 1 2024-11-26 12:46:59 +01:00
Kamil Myśliwiec
3dfc7fc68e feat(microservices): add status, unwrap, on, and other features 2024-11-15 10:03:05 +01:00
Tony133
151806b621 chore: add public api annotation on microservices 2024-05-05 15:18:04 +02:00
regevbr
59379a4d44 fix(microservices): migrate from deprecated kafka subscribe usage 2023-06-17 12:30:12 +03:00
Kamil Myśliwiec
43d0c166d4 fix(microservices): pull kafka retriable error from all handlers, lazy throw 2023-02-02 15:39:45 +01:00
Dominik Koller
34654244a7 put resolve in else block 2023-02-01 14:10:57 +01:00
Dominik Koller
0b395d1f59 resolve on error 2023-02-01 03:07:35 +01:00
Ondřej Švanda
e98d3372be feat(microservices): Add producer reference to KafkaContext 2022-09-12 10:10:28 +02:00
kosh-b
380d230716 Add Kafka heartbeat callback to KafkaContext arguments and pass it to the endpoint 2022-07-19 11:53:37 +03:00
Kamil Mysliwiec
e3ddfafcbf Merge pull request #9681 from micalevisk/fix-issue-9677
fix(microservices): allow `postfixId` on `KafkaOptions` to be an empty string
2022-06-15 11:43:28 +02:00
Micael Levi (@micalevisk)
0359fa4666 fix(microservices): when postfixId is an empty string on kafka 2022-05-27 23:35:38 -04:00
Kamil Myśliwiec
4ca738dddf chore(): resolve conflicts 2022-05-17 12:55:34 +02:00
Kamil Myśliwiec
5464d72738 chore(microservices): make method name somewhat more self descriptive 2022-05-17 12:48:29 +02:00
Kamil Myśliwiec
cfe1191d22 fix(microservices): combine streams instead of subscribing twice 2022-05-17 12:47:42 +02:00
Kamil Myśliwiec
90af9590f5 feat(microservices): dont swallow kafka event handler exceptions 2022-05-17 11:33:42 +02:00
Kamil Myśliwiec
6547f922fb feat(microservices): add kafka request deserializer, unwrap request 2022-05-17 10:49:51 +02:00
Kamil Myśliwiec
a439055646 feat(microservices): add kafka retriable exception, rethrow if needed 2022-05-17 10:41:08 +02:00
David Schütte
b91803c671 feat(microservices): add consumer getter to kafka context
Provide access to native consumer of kafkajs using @Ctx() decorator.
2022-03-07 14:41:31 +01:00
Radek Mikeska
4d689ee356 refactor(microservices): use optional chaining
code review
2022-03-04 07:30:26 +01:00
David Schütte
5b24f81cd8 feat(microservices): add commit offset to kafka context
Provide access to kafkajs commitOffset by using @Ctx() decorator when handeling an event.

This commit closes Kafka commitOffsets #9283.
2022-03-04 01:17:13 +01:00
Radek Mikeska
94b39db8f5 fix(microservices): fix event pattern behavior
When listening to messages from Kafka using EventPattern the message should not be replied to even if it contains correlation id and reply topic.

BREAKING CHANGE: existing methods where EventPattern is used instead of MessagePattern do not send message to a reply topic anymore which might cause bugs.
2022-03-03 16:08:14 +01:00
Kamil Myśliwiec
343877d861 Merge branch 'kafka-async-serializer' of https://github.com/guiruiz/nest into guiruiz-kafka-async-serializer 2022-02-14 11:57:42 +01:00
Micael Levi (lab)
f1b9b636a5 refactor(microservices): drop useless type assertion on server
on every type assertion for `Observable<any>` that is not needed anymore.
2021-12-23 22:38:42 -04:00
Guilherme Ruiz
d21df1018a fix(microservices): fix memory leak 2021-12-17 18:02:14 +11:00
Guilherme Ruiz
58950a0dee refactor(microservices): remove 3 unnecessary await 2021-12-17 10:31:56 +11:00
Guilherme Ruiz
01daeb441f feat(microservices): allow kafka serializer to be async and await result 2021-12-16 17:31:53 +11:00
Kamil Myśliwiec
9d0551ff25 style(): run prettier 2021-08-16 09:30:29 +02:00
Vlad Krokhin
2084157cf7 fix(microservices): reorder kafka config assigment 2021-08-09 16:52:08 +03:00
Johann Wagner
88cf1a178a allow deserializers to be async and await result 2021-07-01 19:50:02 +02:00
Kamil Myśliwiec
2fa43fc6c6 chore(): resolve conflicts 2021-06-29 14:32:00 +02:00
Ivan Alduan
df911082aa KafkaParser options to keep binary payloads without utf8 encoding 2021-04-09 12:47:28 +02:00
Kamil Myśliwiec
9241905f11 fix(microservices): reject on error (on listen method call) 2021-01-28 14:00:15 +01:00
Kamil Myśliwiec
021c32380b fix(microservices): await respond callback, return promise to await (kafka) #5701 2020-12-10 10:53:49 +01:00
Michael Kaufman
0f15e35f2b feat(microservices): Removes redundant kafka external interface 2020-11-21 13:32:40 -05:00
Michael Kaufman
ffd602ffd5 Merge remote-tracking branch 'Nest/master' into 2984-kafka-reply-partitions 2020-11-02 18:14:55 -05:00
Kamil Myśliwiec
8e4e9b7edd Merge branch 'master' of https://github.com/nestjs/nest 2020-11-02 11:09:37 +01:00
Kamil Myśliwiec
03f500d867 chore(): resolve merge conflicts 2020-11-02 10:59:39 +01:00
Kamil Mysliwiec
739878bd35 Merge pull request #5627 from smhmayboudi/5599-fix-kafkaserver-constructor
fix(microservice): Fix KafkaServer constructor
2020-11-02 10:57:58 +01:00
Kamil Myśliwiec
81550648b3 Merge branch 'master' of https://github.com/nestjs/nest; branch '5603-feat-kafkaclient-kafkaserver-naming-conventions' of https://github.com/smhmayboudi/nest into smhmayboudi-5603-feat-kafkaclient-kafkaserver-naming-conventions 2020-11-02 10:57:00 +01:00
Kamil Myśliwiec
b8c6373258 chore(): resolve merge conflicts 2020-11-02 10:51:36 +01:00
Michael Kaufman
a85cb0fe4b feat(microservices): Kafka controller await client consumers connect 2020-10-31 17:39:00 -04:00
Hossein Mayboudi
0af826e2d4 feat(microservices): Add BrokersFunction to KafkaConfig brokers property
Issue Number: #5629
2020-10-30 19:36:53 +03:30
Hossein Mayboudi
1ff912e693 feat(microservice): Add clientIdPostfix to KafkaConfig
Issue Number: #5603
2020-10-30 12:04:08 +03:30
Hossein Mayboudi
5b8d765903 fix(microservice): Fix KafkaServer constructor
Issue Number: #5599
2020-10-30 11:20:05 +03:30
Michael Kaufman
b9007dd93f fix(microservices): Changed visibility of Kafka variables for extension 2020-07-29 11:51:29 -04:00
Kamil Myśliwiec
570dc303c9 fix(): fix update deps issues 2020-06-18 14:24:28 +02:00
Kamil Myśliwiec
d1816a3199 refactor(): adjust style to the rest of codebase 2020-05-24 13:19:24 +02:00
alex
e2c8f74f19 feat(microservices): move getTransportId functions to public variable transportId and make it optional 2020-05-16 15:22:15 +03:00
alex
0845dab3a3 feat(microservices): Add ability for pass transport to MessagePattern 2020-05-10 02:30:16 +03:00
theabuitendyk
741b34fca6 feat(microservices): add subscribe and from beginning to kafka options 2020-02-24 13:40:32 -08:00