Commit Graph
25 Commits
Author SHA1 Message Date
John Colvin 7f22bb5f3b fix: Add Ipv6 urls to Kestrel config
The vite dev proxy server was routing requests to ipv6
loopback, ::1, instead of ipv4, 127.0.0.1
2024-11-29 15:05:54 +00:00
John Colvin ad5692b552 Update datastream webapp appsettings.json (config) 2024-11-29 15:05:53 +00:00
John Colvin 144456e83a Tweak new streams database config 2024-11-29 15:05:53 +00:00
John Colvin a399d315c3 Load IDataStremFactory impls with dependency injection
So we can create ViewStreams that depend on other services, config, etc.
Previously, the PrimitiveManager relied purely on static construction of types
through reflection.
2024-11-29 15:05:53 +00:00
John Colvin 457e619261 refactor: Organize libspark proj w/ stuttering include
This new structure provides several benefits:

* Allows us to install multiple CMake projects in the same destination
  dir (without include path conflicts).
  - This makes shipping the trading algo sdk a trivial excercise. Simply
    copy the lib and include dirs from the install dest. That's it!
* Puts us in a position to break up the monolithic libspark into smaller
  modules, which are easier to manage.
2024-11-29 15:05:10 +00:00
John Colvin b20c38bd1a build: Resolve app data dir and shared mem prefix at runtime
We really can't define them at compile time anymore as we build multiple
exes that depend on libspark in the same dir (e.g., spark api server,
pubsub, ds-publisher, webapp, etc.). That means one libspark.so (or dll)
must serve all exes. We should compile a consistent libspark to mitigate
the risk of running an exe with the wrong version (of libspark). For
example, running pubsub with a libspark configured for spark api server,
leftover from an earlier build.
2024-11-29 14:58:54 +00:00
John Colvin a47fc311b3 Propagate ViewStream errors to webapp frontend 2024-11-29 14:57:44 +00:00
John Colvin 92952eb9e9 cleanup: Remove unused ViewStreamDatabase config 2024-11-29 14:57:44 +00:00
John Colvin 00c110beb2 Configure apps as a distributed system via Docker compose 2024-11-29 14:57:44 +00:00
John Colvin b49e392915 Remove inappropriate "Unable to dispose subscription" log msg 2024-11-29 14:57:44 +00:00
John Colvin 5b9302a3f0 Include subscription id in ds websocket updates 2024-11-29 14:57:44 +00:00
John Colvin ffd07b96e3 Add HttpsRedirection middleware first in the webapp pipeline
Middleware handlers are invoked in the order in which they are added. Any middleware
that is added before HttpsRedirection may can prevent the request from being redirected.
As of now, only development-specific middleware is added ahead of HttpsRedircetion.
2024-11-29 14:57:44 +00:00
John Colvin 435bad013f build: Copy configuration profiles to build dir
So they are readily available to publish/deploy scripts.
2024-11-29 14:57:44 +00:00
John Colvin 66697830a0 fix: Catch WebSocketException in DataStreamSubscription 2024-11-29 14:57:44 +00:00
John Colvin 0ffc8cb9b6 Add a few canned queries to AwsProd.json for ds webapp 2024-11-29 14:57:43 +00:00
John Colvin 0777e3f160 fix: Dispose existing sub on subscribe req in ds webapp
Even if new sub has parse error. This fixes a bug where the previous
subscription would continue firing and updating the frontend, when it
should just display the error info to the user and cease updates.
2024-11-29 14:57:43 +00:00
John Colvin 1eb3075569 fix: Get rid of "UseSpa" calls in webapp Production environment
This was leftover from a misguided attempt to fix a bug that turned out
to be due to an omitted environment var:
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=Microsoft.AspNetCore.SpaProxy
2024-11-29 14:57:43 +00:00
John Colvin 316f49227d Add AwsProd config for DataStream WebApp 2024-11-29 14:57:43 +00:00
John Colvin 00c06429b1 Add SpaServer to Production environment
For Bts.DataStreamWebApp.Server
2024-11-29 14:57:43 +00:00
John Colvin 254e3d38af 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-11-29 14:57:43 +00:00
John Colvin ee0d444ae6 Improve error reporting in DataStreamWebSocketServer 2024-11-29 14:57:43 +00:00
John Colvin 142d530999 datastreamwebapp server checkpt 2024-11-29 14:57:43 +00:00
John Colvin 3179e9add3 Remove unused PubSubConfig props 2024-11-29 14:57:43 +00:00
John Colvin 0f680b1947 improvement: Accept CancellationToken, catch exceptions when running ds websocket server 2024-11-29 14:57:43 +00:00
John Colvin 806c204f08 feat: Add DataStream WebApp
Included in DataStreamSuite.sln, but not DataStreamQueryAnalyzer.sln
2024-11-29 14:57:13 +00:00