diff --git a/Project.toml b/Project.toml index 587e99d..6e3945f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "NATSBridge" uuid = "f2724d33-f338-4a57-b9f8-1be882570d10" -version = "0.5.2" +version = "0.5.3" authors = ["narawat "] [deps] diff --git a/src/NATSBridge.jl b/src/NATSBridge.jl index b0f781e..938971a 100644 --- a/src/NATSBridge.jl +++ b/src/NATSBridge.jl @@ -47,7 +47,7 @@ using NATS, JSON, Arrow, HTTP, UUIDs, Dates, Base64, PrettyPrinting, DataFrames # ---------------------------------------------- 100 --------------------------------------------- # # Constants -const DEFAULT_SIZE_THRESHOLD = 1_000_000 # 1MB - threshold for switching from direct to link transport +const DEFAULT_SIZE_THRESHOLD = 500_000 # 0.5MB - threshold for switching from direct to link transport const DEFAULT_BROKER_URL = "nats://localhost:4222" # Default NATS server URL const DEFAULT_FILESERVER_URL = "http://localhost:8080" # Default HTTP file server URL for link transport diff --git a/src/natsbridge.js b/src/natsbridge.js index cb83e92..1711b33 100644 --- a/src/natsbridge.js +++ b/src/natsbridge.js @@ -19,9 +19,9 @@ const arrow = require('apache-arrow'); // ---------------------------------------------- Constants ---------------------------------------------- // /** - * Default size threshold for switching from direct to link transport (1MB) + * Default size threshold for switching from direct to link transport (0.5MB) */ -const DEFAULT_SIZE_THRESHOLD = 1_000_000; +const DEFAULT_SIZE_THRESHOLD = 500_000; /** * Default NATS server URL diff --git a/src/natsbridge.py b/src/natsbridge.py index 98e456a..05fbd14 100644 --- a/src/natsbridge.py +++ b/src/natsbridge.py @@ -34,9 +34,9 @@ except ImportError: # ---------------------------------------------- Constants ---------------------------------------------- # """ -Default size threshold for switching from direct to link transport (1MB) +Default size threshold for switching from direct to link transport (0.5MB) """ -DEFAULT_SIZE_THRESHOLD = 1_000_000 +DEFAULT_SIZE_THRESHOLD = 500_000 """ Default NATS server URL