a1c4e64994
ref https://linear.app/tryghost/issue/CFR-4/ - added request queueing middleware (express-queue) to handle high request volume - added new config option `optimization.requestQueue` - added new config option `optimization.requestConcurrency` - added logging of request queue depth - `req.queueDepth` We've done a fair amount of investigation around improving Ghost's resiliency to high request volume. While we believe this to be partly due to database connection contention, it also seems Ghost gets overwhelmed by the requests themselves. Implementing a simple queueing system allows us a simple lever to change the volume of requests Ghost is actually ingesting at any given time and gives us options besides simply increasing database connection pool size. --------- Co-authored-by: Michael Barrett <mike@ghost.org>
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "@tryghost/oembed-service",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/oembed-service",
|
|
"author": "Ghost Foundation",
|
|
"private": true,
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'",
|
|
"test": "yarn test:unit",
|
|
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
|
"lint": "yarn lint:code && yarn lint:test",
|
|
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"c8": "8.0.1",
|
|
"mocha": "10.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@extractus/oembed-extractor": "3.2.1",
|
|
"@tryghost/errors": "1.3.1",
|
|
"@tryghost/logging": "2.4.13",
|
|
"@tryghost/tpl": "0.1.26",
|
|
"charset": "1.0.1",
|
|
"cheerio": "0.22.0",
|
|
"iconv-lite": "0.6.3",
|
|
"lodash": "4.17.21",
|
|
"metascraper": "5.41.0",
|
|
"metascraper-author": "5.42.0",
|
|
"metascraper-description": "5.42.0",
|
|
"metascraper-image": "5.42.0",
|
|
"metascraper-logo": "5.42.0",
|
|
"metascraper-logo-favicon": "5.42.0",
|
|
"metascraper-publisher": "5.42.0",
|
|
"metascraper-title": "5.42.0",
|
|
"metascraper-url": "5.40.0",
|
|
"tough-cookie": "4.1.3"
|
|
}
|
|
}
|