Skip to content

Commit

Permalink
chore(working-with-kafka): touch conf files
Browse files Browse the repository at this point in the history
  • Loading branch information
martypitt committed Feb 26, 2025
1 parent 3326e19 commit 282ef67
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion csv-to-api/taxi.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: com.acme/csv-to-api
version: 0.1.0
sourceRoot: src/
additionalSources: {}
additionalSources: {
"@orbital/config" : "orbital/config/*.conf",
"@orbital/nebula" : "orbital/nebula/*.nebula.kts"
Expand Down
1 change: 1 addition & 0 deletions large-file-feed/orbital/nebula/stack.nebula.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ data class Warehouse(
)



val warehouseTestData = listOf(
Warehouse(
name = "UK-LONDON-01",
Expand Down
1 change: 1 addition & 0 deletions working-with-kafka/orbital/config/connections.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ hazelcast {
addresses = ["localhost:"${NEBULA_HAZELCAST_PORT}]
}
}

1 change: 1 addition & 0 deletions working-with-kafka/orbital/config/services.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ services {
url="http://localhost:"${NEBULA_HTTP_PORT}""
}
}

1 change: 0 additions & 1 deletion working-with-kafka/orbital/nebula/stack.nebula.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ stack {

val activeDeliveries = ConcurrentHashMap<String, DeliveryState>()


// Generate new orders
producer("2000ms".duration(), "orders") {
jsonMessage {
Expand Down
2 changes: 1 addition & 1 deletion working-with-kafka/src/customer.api.taxi
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ closed model Customer {

service CustomerService {
@HttpOperation(url="http://customerApi/customers/{customerId}", method = "GET")
operation findCustomer(@PathVariable("customerId") customerId: CustomerId): Customer
operation findCustomer(@PathVariable("customerId") customerId: CustomerId): Customer(...)
}
13 changes: 13 additions & 0 deletions working-with-kafka/src/orderStream.taxi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import com.orbitEats.delivery.DeliveryUpdate

@HttpOperation(method = "GET", url = "/api/q/orders")
query orderStream {
stream { OrderPlaced & DeliveryUpdate } as {
orderId,
items,
status,
timestamp,
currentLocation,
customerName: CustomerName
}[]
}

0 comments on commit 282ef67

Please sign in to comment.