update
This commit is contained in:
@@ -4,17 +4,16 @@
|
|||||||
#
|
#
|
||||||
# This is serviceB - the receiver that receives a dummy dictionary from serviceA
|
# This is serviceB - the receiver that receives a dummy dictionary from serviceA
|
||||||
|
|
||||||
using NATSBridge
|
|
||||||
using UUIDs
|
using UUIDs
|
||||||
using JSON
|
using JSON
|
||||||
using Dates
|
using Dates
|
||||||
|
|
||||||
# Include the NATSBridge module
|
# Include the NATSBridge module
|
||||||
include("src/NATSBridge.jl")
|
include("../src/NATSBridge.jl")
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
const SUBJECT = "/NATSBridge_dict_test"
|
const SUBJECT = "/NATSBridge_dict_test"
|
||||||
const NATS_URL = "nats://localhost:4222"
|
const NATS_URL = "nats.yiem.cc"
|
||||||
|
|
||||||
# Helper: Log with correlation ID
|
# Helper: Log with correlation ID
|
||||||
function log_trace(correlation_id::String, message::String)
|
function log_trace(correlation_id::String, message::String)
|
||||||
|
|||||||
@@ -4,17 +4,17 @@
|
|||||||
#
|
#
|
||||||
# This is serviceA - the sender that sends a dummy dictionary to serviceB
|
# This is serviceA - the sender that sends a dummy dictionary to serviceB
|
||||||
|
|
||||||
using NATSBridge
|
|
||||||
using UUIDs
|
using UUIDs
|
||||||
using JSON
|
using JSON
|
||||||
|
using Dates
|
||||||
|
|
||||||
# Include the NATSBridge module
|
# Include the NATSBridge module
|
||||||
include("src/NATSBridge.jl")
|
include("../src/NATSBridge.jl")
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
const SUBJECT = "/NATSBridge_dict_test"
|
const SUBJECT = "/NATSBridge_dict_test"
|
||||||
const NATS_URL = "nats://localhost:4222"
|
const NATS_URL = "nats.yiem.cc"
|
||||||
const FILESERVER_URL = "http://localhost:8080"
|
const FILESERVER_URL = "http://192.168.88.104:8080"
|
||||||
|
|
||||||
# Create correlation ID for tracing
|
# Create correlation ID for tracing
|
||||||
correlation_id = string(uuid4())
|
correlation_id = string(uuid4())
|
||||||
@@ -47,7 +47,7 @@ function send_dictionary()
|
|||||||
),
|
),
|
||||||
"metadata" => Dict(
|
"metadata" => Dict(
|
||||||
"sender" => "serviceA",
|
"sender" => "serviceA",
|
||||||
"timestamp" => Dates.now().iso8601
|
"timestamp" => string(Dates.now())
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user