-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
142 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
aws { | ||
my-aws-account { | ||
# Optional Parameter. When not provided Orbital will use the [AWS default credentials provider](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html#credentials-default) by default. | ||
accessKey=${NEBULA_S3_ACCESS_KEY} | ||
connectionName=my-aws-account | ||
# Optional parameter for development and testing purposes to point to a different endpoint such as a LocalStack installation. | ||
endPointOverride=${NEBULA_S3_ENDPOINT_OVERRIDE} | ||
# Mandatory | ||
region=eu-west-1 | ||
# Optional Parameter. When not provided Orbital will use the [AWS default credentials provider](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html#credentials-default) by default. | ||
secretKey=${NEBULA_S3_SECRET_KEY} | ||
} | ||
} | ||
jdbc { | ||
my-postgres-db { | ||
connectionName=my-postgres-db | ||
connectionParameters { | ||
database=${NEBULA_POSTGRES_DATABASE_NAME} | ||
host=localhost | ||
password=${NEBULA_POSTGRES_PASSWORD} | ||
port=${NEBULA_POSTGRES_PORT} | ||
username=${NEBULA_POSTGRES_USERNAME} | ||
} | ||
jdbcDriver=POSTGRES | ||
} | ||
} | ||
kafka { | ||
my-kafka-connection { | ||
connectionName=my-kafka-connection | ||
connectionParameters { | ||
brokerAddress=${NEBULA_KAFKA_BOOTSTRAP_SERVERS} | ||
groupId=vyne | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
services { | ||
ticketsApi { | ||
url="http://localhost:"${NEBULA_HTTP_PORT}"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import com.orbitalhq.kafka.KafkaService | ||
import com.orbitalhq.kafka.KafkaOperation | ||
|
||
@KafkaService(connectionName = "my-kafka-connection") | ||
service MyKafkaConnectionService { | ||
@KafkaOperation(topic = "ticket-sales" , offset = "earliest") | ||
stream venueTicketSales : Stream<VenueTicketSalesMessage> | ||
|
||
@KafkaOperation( topic = "ticket-sales", offset = "earliest" ) | ||
write operation publishTicketSalesMessage(VenueTicketSalesMessage):VenueTicketSalesMessage | ||
} | ||
|
||
closed parameter model VenueTicketSalesMessage { | ||
title : Title | ||
filmId: FilmId | ||
screeningDate : ScreeningDate | ||
cinemaName: CinemaName | ||
cinemaId: CinemaId | ||
tickets: TicketsSold | ||
ticketPrice: Price | ||
revenue: TicketRevenue | ||
} |