@ms-cloudpack/data-bus 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Cloudpack runs a bundle service which is accessed to retrieve esm package bundle
|
|
|
122
122
|
|
|
123
123
|
Many consumers may request the same bundle at the same time. This implies 1. We need to dedupe redundant requests, and 2. We need to reuse the output to fulfill future requests.
|
|
124
124
|
|
|
125
|
-
In the original implementation, requests to the same resource would first check cache for results, find it missing, and start bundling by calling an imperative api like `async bundle(options: Options): Result`. This would write to a cache location, which would then
|
|
125
|
+
In the original implementation, requests to the same resource would first check cache for results, find it missing, and start bundling by calling an imperative api like `async bundle(options: Options): Result`. This would write to a cache location, which would then fulfill future requests. But this left race conditions because we weren't deduping in-flight requests, nor were we re-populating bundles that changed inputs slightly. This led to the question: what kind of architecture would we need to essentially dedupe redundant requests, and provide a general architecture for caching content?
|
|
126
126
|
|
|
127
127
|
We ran into other similar scenarios:
|
|
128
128
|
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/data-bus",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "A data bus implementation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"source": "./src/index.ts",
|
|
11
12
|
"types": "./lib/index.d.ts",
|
|
12
13
|
"import": "./lib/index.js"
|
|
13
14
|
}
|