-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streampay guided steps #86
Conversation
...main/java/io/aklivity/zilla/demo/streampay/stream/processor/ProcessValidCommandSupplier.java
Outdated
Show resolved
Hide resolved
private String requestId; | ||
private double amount; | ||
private String notes; | ||
private String requestId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this change be reverted?
streampay/avro/commands.avro
Outdated
{ | ||
"type": "record", | ||
"name": "PaymentCommand", | ||
"namespace": "com.example", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"namespace": "com.example", | |
"namespace": "io.aklivity.demos.streampay", |
streampay/avro/replies.avro
Outdated
{ | ||
"type": "record", | ||
"name": "Replies", | ||
"namespace": "com.example", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"namespace": "com.example", | |
"namespace": "io.aklivity.demos.streampay", |
streampay/avro/user-balance.avro
Outdated
{ | ||
"type": "record", | ||
"name": "UserBalance", | ||
"namespace": "com.example", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"namespace": "com.example", | |
"namespace": "io.aklivity.demos.streampay", |
servers: | ||
cluster: | ||
host: 'pkc-41p56.asia-south1.gcp.confluent.cloud:443' | ||
protocol: kafka | ||
description: Confluent Kafka instance. | ||
security: | ||
- $ref: '#/components/securitySchemes/confluentBroker' | ||
schema-registry: | ||
host: psrc-e8157.us-east-2.aws.confluent.cloud | ||
protocol: kafka | ||
description: Confluent Kafka Schema Registry Server | ||
security: | ||
- $ref: '#/components/securitySchemes/confluentSchemaRegistry' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably remove this servers
section from the generated spec and inject the server information when we "deploy" the spec instead, agree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
securitySchemes: | ||
confluentBroker: | ||
type: userPassword | ||
x-configs: | ||
sasl.mechanisms: PLAIN | ||
sasl.password: '{{CLUSTER_API_SECRET}}' | ||
sasl.username: '{{CLUSTER_API_KEY}}' | ||
security.protocol: sasl_ssl | ||
confluentSchemaRegistry: | ||
type: userPassword | ||
x-configs: | ||
basic.auth.user.info: '{{SCHEMA_REGISTRY_API_KEY}}:{{SCHEMA_REGISTRY_API_SECRET}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can defer securitySchemes
until "deploy" similar to servers
section above.
streampay/stack/conf/zilla.yaml
Outdated
vaults: | ||
filesystem2814ec86-7736-49c9-babe-d8e6cedde0dc: | ||
--- | ||
name: zilla-mqtt-kafka-broker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: zilla-mqtt-kafka-broker | |
name: zilla-demos-streampay |
streampay/stream.sql
Outdated
-- PARTITIONS=2, | ||
-- VALUE_FORMAT=avro | ||
-- ); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE TOPIC
for other required Kafka topics.
streampay/stream.sql
Outdated
|
||
|
||
CREATE MATERIALIZED VIEW IF NOT EXISTS invalid_commands AS | ||
SELECT bad_request_status() as status, correlationid::varchar as correlationid from commands where key IS NULL OR type NOT IN ('PayCommand', 'RequestCommand'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the types to SendPaymentCommand
and RequestPaymentCommand
, or just SendPayment
and RequestPayment
if the context of "command" is implicit.
This one is no longer needed. |
No description provided.