2 Commits

Author SHA1 Message Date
Ali CANLI
7f9eae22ef Add Google k8n engine files and finish project... 2022-07-18 14:28:43 +03:00
Ali CANLI
c1fda2654f Merge pull request #16 from alicanli1995/cqrs-pattern
Cqrs pattern
2022-07-17 15:03:51 +03:00
7 changed files with 22 additions and 25 deletions

View File

@@ -16,13 +16,11 @@ spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres?currentSchema=customer&binaryTransfer=true&reWriteBatchedInserts=true
username: postgres
password: postgres
password: admin
driver-class-name: org.postgresql.Driver
sql:
init:
mode: always
schema-locations: classpath:init-schema.sql
platform: postgres
platform: postgres
schema: classpath:init-schema.sql
initialization-mode: always
kafka-config:
bootstrap-servers: localhost:19092, localhost:29092, localhost:39092

Submodule food-order-system-infra added at 9a47979f37

View File

@@ -1,5 +1,5 @@
server:
port: 3232
port: 8181
logging:
level:
com.food.order.system : DEBUG
@@ -24,13 +24,11 @@ spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres?currentSchema=order&binaryTransfer=true&reWriteBatchedInserts=true&stringtype=unspecified
username: postgres
password: postgres
driverClassName: org.postgresql.Driver
sql:
init:
platform: postgres
mode: always
schema-locations: classpath:init-schema.sql
password: admin
driver-class-name: org.postgresql.Driver
platform: postgres
schema: classpath:init-schema.sql
initialization-mode: always
kafka-config:
bootstrap-servers: localhost:19092, localhost:29092, localhost:39092

View File

@@ -87,9 +87,9 @@ CREATE INDEX "payment_outbox_saga_status"
ON "order".payment_outbox
(type, outbox_status, saga_status);
--CREATE UNIQUE INDEX "payment_outbox_saga_id"
-- ON "order".payment_outbox
-- (type, saga_id, saga_status);
CREATE UNIQUE INDEX "payment_outbox_saga_id"
ON "order".payment_outbox
(type, saga_id, saga_status);
DROP TABLE IF EXISTS "order".restaurant_approval_outbox CASCADE;

View File

@@ -22,7 +22,7 @@ spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres?currentSchema=payment&binaryTransfer=true&reWriteBatchedInserts=true&stringtype=unspecified
username: postgres
password: postgres
password: admin
driver-class-name: org.postgresql.Driver
platform: postgres
schema: classpath:init-schema.sql

View File

@@ -32,6 +32,8 @@
<spring-kafka.version>2.8.2</spring-kafka.version>
<kavka-avro.serializer.version>7.0.1</kavka-avro.serializer.version>
<avro.version>1.11.0</avro.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencyManagement>

View File

@@ -22,14 +22,12 @@ spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres?currentSchema=restaurant&binaryTransfer=true&reWriteBatchedInserts=true&stringtype=unspecified
username: postgres
password: postgres
password: admin
driver-class-name: org.postgresql.Driver
sql:
init:
platform: postgres
mode: always
data-locations: classpath:init-data.sql
schema-locations: classpath:init-schema.sql
platform: postgres
schema: classpath:init-schema.sql
data: classpath:init-data.sql
initialization-mode: always
kafka-config:
bootstrap-servers: localhost:19092, localhost:29092, localhost:39092