-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign the way data flows through Edge. Previously, we had thread locks on our data sources, which was impacting the response time of the application. This moves everything to be in memory cached with lazy persistence in the background and reloading the state on application startup. This means the hot path is now lock free. --------- Co-authored-by: sighphyre <[email protected]>
- Loading branch information
Showing
33 changed files
with
1,755 additions
and
1,585 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { htmlReport } from "https://raw.githubusercontent.com/benc-uk/k6-reporter/main/dist/bundle.js"; | ||
import http from 'k6/http'; | ||
|
||
import { sleep } from 'k6'; | ||
|
||
export const options = { | ||
duration: '10s', | ||
vus: 50, | ||
thresholds: { | ||
http_req_failed: ['rate<0.01'], | ||
http_req_duration: ['p(95)<10'] // (95th percentile should be < 10 ms) | ||
} | ||
}; | ||
|
||
export function handleSummary(data) { | ||
return { | ||
"summary.html": htmlReport(data), | ||
}; | ||
} | ||
|
||
export default function () { | ||
http.get('http://127.0.0.1:3063/api/proxy', { 'headers': { 'Authorization': `${__ENV.TOKEN}` } }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.