16 Commits

Author SHA1 Message Date
kct949
2ad9ec2a92
use fixed sqledge version (#9)
* trying to throw everything at the problem

* use 1.0.5 and MSSQL_SA_PASSWORD
2023-03-24 10:06:11 +01:00
kct949
90b3c0a407
Pt/finish kafka (#5)
* Add kafka eventbus to Catalog, Ordering and Payment.

Only catalog is confirmed to work, I think the ordering background
service and payment are still subscribing to rabbitMQ for some reason
(needs more investigation)

* Fix kafka consumer group ids.

* Fix build problems (duplicate package + lower version)

All services seem to use Kafka now, but it seems like
kafka takes to long to start up and the services
fail to connect to the borkers (either we have to do
retries similar like rabbitmq) or we are going to
enforce the execution order in docker compose by
using something like healthchecks.

* Add kafka broker dependency for other services.

Still have bug in eventBus subscription because
for example the ordering service should
handle a UserCheckoutAccepted event put it does have
no subscription for it when such an event is
published to the Kafka topic:

```
src-ordering-api-1              | [15:04:42 WRN] No subscription for Kafka event: UserCheckoutAccepted
src-ordering-api-1              | Consumed event: UserCheckoutAccepted
src-ordering-api-1              |  Content: 632B63DB0CE145D499FE01904F76A475
```

* Add logging for subscription manager problem.

Seems like the subscription manager is not used
correctly in the kafka eventbus (two different objects?).

* add printing handlers

* actually trigger printing handlers

* add kafkapersistentconnection registration

* Revert "add kafkapersistentconnection registration"

This reverts commit 704ee3e36f09f3f3ad48057de31996654a8e3894.

* add allowAutoCreateTopics in consumers (different than default) and in producers (just to be explicit)

* register DefaultKafkaPersistentConnection in ordering.backgroundtasks

* remove noise in logs

* Make eventNames in kafka eventbus consistent.

Do not remove IntegrationEventSuffix, before this
change the subscription handlers and eventNames did not match.

* Create kafka admin background service to create empty topic.

We have to create the eshop_event_bus kafka topic on startup,
because otherwise the consumer of the microservices would fail.

---------

Co-authored-by: Philipp Theyssen <p.theyssen@gmail.com>
Co-authored-by: Philipp Theyssen <34607877+PTheyssen@users.noreply.github.com>
2023-03-15 12:00:20 +01:00
kct949
2af8c1ba25 add 'copy kafka project' to all dockerfiles 2023-02-15 16:34:05 +01:00
kct949
6d6a9c09d2 add kafka to docker compose 2023-02-15 15:18:05 +01:00
kct949
0ab118a064 disable frontend containers in docker-compose 2023-02-11 12:37:18 +01:00
kct949
e5f7d835e6 M1 fix: use Azure SQL Edge instead of SQL Server + use newer Envoy version 2023-02-11 12:31:18 +01:00
Miguel Veloso
2a0db634c4 Update to .NET 5 2021-06-17 17:17:04 +01:00
Miguel Veloso
96c0c1d32c Upgrade key packages 2021-01-13 13:14:59 +00:00
Borja García Rodríguez
f53e2c0286 remove campaings from SPA 2020-12-21 15:47:17 +01:00
Borja García Rodríguez
cc28b8cd76 remove marketing and locations 2020-12-21 13:19:33 +01:00
epique@plainconcepts.com
5f1bdbcc47 Fix npm & docker build warnings #1224
Update Angular 7 to 8 to fix warnings and vulnerabilities
2020-01-24 10:32:20 +01:00
Miguel Veloso
ae8130c83f Change dockerhub microsoft images to mcr 2019-12-02 18:02:02 +00:00
Miguel Veloso
3adb63aba5 Run unit and integration tests from VS 2019-11-18 18:38:35 +00:00
eiximenis
a2053deb49 Final charts tunning and allowing Linkerd Mesh to be used 2019-09-10 19:49:50 +02:00
eiximenis
efa7d3bc20 updated compose and 1st envoy config 2019-09-10 11:53:58 +02:00
eiximenis
11fe3fc42c Moved some files to ./src/ 2019-08-28 10:30:55 +02:00