This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: REST bridge performance During a benchmark test using `wrk` it was revealed that a REST bridged service was significantly slower than comparable servers such as Spring Boot. Profiling the server revealed that the ListenOnce() method was causing a significant amount of overheads as it was being called per HTTP request, thus generating a new message handler and invoking once.Do() call involving mutex every single time. The fix involves using the ListenStream() method to stop generating excessive time and space overheads during the bridge process. See the attached screenshots for comparsion between before and after fix. Signed-off-by: Josh Kim <kjosh@vmware.com> * new: support noop io.Writer for logs Signed-off-by: Josh Kim <kjosh@vmware.com> * fix broken unit tests Signed-off-by: Josh Kim <kjosh@vmware.com> * isolate bus instance throughout platformServer Signed-off-by: Josh Kim <kjosh@vmware.com>
- Loading branch information
Showing
13 changed files
with
254 additions
and
98 deletions.
There are no files selected for viewing
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
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.