John Colvin
73ce6d129e
Add SpaServer to Production environment
...
For Bts.DataStreamWebApp.Server
2024-10-21 13:29:58 +00:00
John Colvin
ad2bd712c5
Change DirectoryBrowser requestPath to "/browse"
...
So we can view a psuedo file explorer for the webapp by requesting the "/browse" path
(only activated in Development environment).
2024-10-21 13:29:58 +00:00
John Colvin
d78079f442
Publish Bts.DataStreamWebApp.Server along with PubSub & DataStream
2024-10-21 13:29:58 +00:00
John Colvin
928ba5d056
cleanup: Remove unused code in Bts.DataStreamWebApp.Client
2024-10-21 13:29:58 +00:00
John Colvin
762a0914f3
Capture OperationCanceledException (instead of TaskCanceledException)
...
The former is the base class for the latter, so this will widen the umbrella to catch a few corner cases
that would otherwise been handled by the generic "Exception" catch block. One corner case I know
of is when an op is canceled via "CancellationToken.ThrowIfCancellationRequested". In that case,
an OperationCanceledException is thrown (not a TaskCanceledException).
https://stackoverflow.com/questions/34359129/operationcanceledexception-vs-taskcanceledexception-when-task-is-canceled
2024-10-21 13:29:58 +00:00
John Colvin
6a18eaf122
Hardcode webSocketUrl to aws server in DataStreamWebApp client
2024-10-21 13:29:58 +00:00
John Colvin
1b40083008
Assert that System publishers 'doWork' is always called on same thread
2024-10-21 13:29:58 +00:00
John Colvin
b381ce0154
fix: Make InternalPublisherQueue thread safe
2024-10-21 13:29:58 +00:00
John Colvin
2fef1ceb99
Improve error reporting in DataStreamWebSocketServer
2024-10-21 13:29:58 +00:00
John Colvin
08c2b2a7f2
data stream web app client check pt
2024-10-21 13:29:58 +00:00
John Colvin
b983edadf0
fix build: Fix Spark build after making config init async
2024-10-21 13:29:58 +00:00
John Colvin
a81c4e90a7
fix Change Configuration.initialize to be async
2024-10-21 13:29:58 +00:00
John Colvin
ad3e94865c
refactor: Tweak SparkCoreServices to synchronize Configuration.init globally
2024-10-21 13:29:58 +00:00
John Colvin
b4979410e4
refactor: Change Configuration.initialize to be async
2024-10-21 13:29:58 +00:00
John Colvin
cc103305d4
vscode: Add 'isSparkApiEnabled' input to launch.json
2024-10-21 13:29:58 +00:00
John Colvin
454913811d
SparkApiService check pt
2024-10-21 13:29:58 +00:00
John Colvin
824912383f
pubsub server checkpt
2024-10-21 13:29:58 +00:00
John Colvin
347d5e75a6
pubsub checkpt
2024-10-21 13:29:58 +00:00
John Colvin
d0d2934e37
datastreamwebapp server checkpt
2024-10-21 13:29:58 +00:00
John Colvin
22ced681c1
datastream webapp client check pt
2024-10-21 13:29:58 +00:00
John Colvin
a9b91de56a
fix add pubsub services
2024-10-21 13:29:58 +00:00
John Colvin
6dc4387867
Remove unused PubSubConfig props
2024-10-21 13:29:58 +00:00
John Colvin
6e9fa7b6f7
Fix dsqa config json
2024-10-21 13:29:58 +00:00
John Colvin
16c3223eb5
fix: Always call 'handle_internal_pubs' in PubSubMessageReactor main loop
2024-10-21 13:29:58 +00:00
John Colvin
f79335fcc0
improvement: Accept CancellationToken, catch exceptions when running ds websocket server
2024-10-21 13:29:58 +00:00
John Colvin
57f8e1f29b
Fix mismatched types in PubSubServerTagStatsStream schema
2024-10-21 13:29:58 +00:00
John Colvin
bab9a4cd7b
Add DataStreamPublisher service modules designed for Dependency Injection
...
* Change DataStreamPublisher json fields to match cs class property names verbatim
* Rename Publishers -> PublisherNodes in DataStreamPublisherConfig
2024-10-21 13:29:57 +00:00
John Colvin
dde07b16f5
refactor: Decouple ViewPublisher from IPubTableBroker impl
2024-10-21 13:29:57 +00:00
John Colvin
ac80c8ed1d
Add PubSub service modules designed for Dependency Injection
...
* Get rid of JsonPropertyName attributes in PubSubConfig
- The Dependency Injection framework (based around dotnet ApplicationBuilder)
does not support this attribute, and maps property names verbatim to json fields.
* Change PubSubServer json fields to match cs class property names verbatim
2024-10-21 13:29:57 +00:00
John Colvin
90aeb7b855
refactor: Decouple RemoteQueryManager from IManagedSubscriber, IPubTableBroker impl
2024-10-21 13:29:57 +00:00
John Colvin
ef1c2c7032
refactor: Decouple ManagedSubscriber from ISubscriberCore impl
2024-10-21 13:29:57 +00:00
John Colvin
ef2c56e1bd
refactor: Only support 1 tag type in IPubSubServerTagHandler
2024-10-21 13:29:57 +00:00
John Colvin
958bc3d233
refactor: Decouple PubTableBroker from IPublisherCore impl
...
Reference interface rather than the PublisherCore impl.
2024-10-21 13:29:57 +00:00
John Colvin
64edb1c854
improvement: Accept CancellationToken in JsonRpcRequestObservable
2024-10-21 13:29:57 +00:00
John Colvin
656eef4dbd
fix: Dispose market data sub in various md streams
2024-10-21 13:29:57 +00:00
John Colvin
6b298f3eaa
cleanup: Remove unused pubsub tag handler code
...
* Removed 'IPubSubServerTagHandler.register'
- All implementations of this function were empty
* Removed 'IPubSubServerTagHandler.supportedTagTypes'
- This property wasn't referenced anywhere
* Remove IWorker inheritance from IPubSubServerTagHandler
- No reason these interfaces have to be tied together
2024-10-21 13:29:57 +00:00
John Colvin
03d1b1967e
refactor: Rename CloudStreamManager.cs -> RemoteQueryManager.cs
...
This matches the file name
2024-10-21 13:29:57 +00:00
John Colvin
6fee2750a3
Change pub sub schema prefix 'bluto://' -> 'bts-cloud://'
...
In config json files (not actual code change)
2024-10-21 13:29:57 +00:00
John Colvin
8f5c66493e
fix build: Fix prop names after refactoring PubSubRoute
...
* Change 'server_address' -> 'ServerAddress'
* Change 'tag_reg_exp' -> 'TagRegExp'
2024-10-21 13:29:57 +00:00
John Colvin
d688965160
build: Add scripts to publish data stream apps
2024-10-21 13:29:57 +00:00
John Colvin
ae2ab08f5b
Fix typo in log msg
2024-10-21 13:29:57 +00:00
John Colvin
bdd5beb783
Fix build scripts so they propagate the exit code back to the shell
...
I noticed this was broken because launch.json configurations would still start the debugger
even when the preLaunchTask (build) failed!
2024-10-21 13:29:57 +00:00
John Colvin
ba435b728f
vscode: Add DataStreamPublisher debug cfg to skip build
2024-10-21 13:29:57 +00:00
John Colvin
a0029ed4c6
build: Use separate cmd to build DataStreamSuite/QueryAnalyzer.sln
...
The DataStreamSuite.sln builds the new webapp now, which will
(eventually) replace DSQA. We'll keep it around for now, but with a
clean separation from the main build.
2024-10-21 13:29:57 +00:00
John Colvin
add3aa8bd3
feat: Add DataStream WebApp
...
Included in DataStreamSuite.sln, but not DataStreamQueryAnalyzer.sln
2024-10-21 13:29:57 +00:00
John Colvin
6dbd77c6b5
Add spark service modules designed for Dependency Injection
2024-10-21 13:29:57 +00:00
John Colvin
83848f455d
build: Copy libspark to all dotnet dirs in single cmake target
...
This is cleaner than the previous impl, which used separate build
targets to copy libspark to "net7.0", and "net7.0-windows" (dirs).
2024-10-21 13:29:57 +00:00
John Colvin
6d5464bb92
fix: Parse ServerAddress as normal string
...
The "JsonValueOrArrayConverter<T>" doesn't work the way I thought it
would. When it is associated with a property via the JsonConverter
attribute, dotnet json parsing code throws an exception if "T" isn't
assignable to the property type.
2024-10-21 13:29:57 +00:00
John Colvin
3afe3f3928
fix build (api server): Change namespace to bts.websocket_core
2024-10-21 13:29:57 +00:00
John Colvin
9d71c90bef
Remove docker submodules again
2024-10-21 13:29:57 +00:00