Skip to content
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

Closed
wants to merge 16 commits into from
Closed

Conversation

akrambek
Copy link
Contributor

No description provided.

@jfallows jfallows linked an issue Jun 20, 2024 that may be closed by this pull request
Comment on lines 18 to 20
private String requestId;
private double amount;
private String notes;
private String requestId;
Copy link
Contributor

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?

{
"type": "record",
"name": "PaymentCommand",
"namespace": "com.example",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"namespace": "com.example",
"namespace": "io.aklivity.demos.streampay",

{
"type": "record",
"name": "Replies",
"namespace": "com.example",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"namespace": "com.example",
"namespace": "io.aklivity.demos.streampay",

{
"type": "record",
"name": "UserBalance",
"namespace": "com.example",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"namespace": "com.example",
"namespace": "io.aklivity.demos.streampay",

Comment on lines 5 to 17
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'
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

Comment on lines 354 to 365
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}}'
Copy link
Contributor

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.

vaults:
filesystem2814ec86-7736-49c9-babe-d8e6cedde0dc:
---
name: zilla-mqtt-kafka-broker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: zilla-mqtt-kafka-broker
name: zilla-demos-streampay

-- PARTITIONS=2,
-- VALUE_FORMAT=avro
-- );

Copy link
Contributor

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.



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');
Copy link
Contributor

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.

@jfallows
Copy link
Contributor

This one is no longer needed.

@jfallows jfallows closed this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants