My trip to Bulgaria has come to an end! I’ve been back in Belgium for a bit, processing the experience of Bulgaria and thinking about what I want to learn from it in the long term. I think there’s a word for precisely this kind of thing, but I can’t seem to remember it. Internalizing, pondering, evaluating, … and everything in between.
It only lasted for one week, but traveling to different countries pushes me as far out of my old comfort zone as I can imagine, so taking time for it is a must. Trying to take steps that are too big can move you backward rather than forward.
One small week with a lot of new and unexpected experiences.
Having only been there for a week, I can’t describe what life in Bulgaria is really like. Even my short time has provided me with plenty of experiences that I’ll take with me to the future, and even those experiences I can’t properly describe. I could approximate them, but rather than mess up the translation of the experience I just challenge you to visit Sofia yourself.
But here are some pictures to share with all of you!
Next up: Nope, not Reykjavík, Iceland! At least not yet. Having been to Bulgaria, and having taken the time to process everything, I’ve come to realize that my next best step is not to travel to the next unknown place yet. Unfamiliar places sound challenging and fun, but now is the time to go somewhere a little bit more familiar and to allow part of my life to settle. A place to keep my sense of home before I travel to the next unfamiliar place. That’s my real step forward.
So next up: Vienna, Austria!
And today marks the devkat release of The Sublimely Magnificent Node.js RM Webserver Mark III.
We’ve finished the last integrations and it’s ready to take over the Flask/werkzeug webserver’s task of serving dynamic data for RocketMap, except a tad more efficiently than Flask/werkzeug.
For those who don’t know, people who support RocketMap development via devkat’s Patreon get early access to our private Gitlab code repositories. Supporters of the rank “Grapefruit” (shh, don’t ask why it’s called that) get direct access to our development repositories, and “Not A Grapefruit” (in short: NAGs) supporters have an early release testing repository. NAGs get access to releases for two weeks to test the new releases; after those two weeks, it gets published to the open source community.
Update 20/11: As of today, the project is open source and released on Github! You can visit the project here. Future updates and reworks still follow the devkat release cycle described above. Big thanks to all of our Patreon supporters who made this possible in the first place.
To summarize, on top of the original version of the Node.js web server, we’ve worked on reworking the web server to be even better:
- replaced Express.js with restify for an API-focused structure,
- comes with built-in DTrace support,
- comes with built-in configurable request throttling (rate limiting, default 5 req./s rate, 10 req./s burst),
- added logging library for better configurability,
- added HTTPS support,
- removed Sequelize ORM in favor of the more “raw” approach with node-mysql, improving query performance by removing overhead and getting more control over SQL queries
Here are our latest benchmarks, straight from a production environment, tested with ApacheBench. Keep in mind that these benchmarks aren’t 1-on-1 implementation translations and they don’t even have the same set of features. This shouldn’t be used as a measure for Flask/werkzeug’s performance, it’s only meant to give realistic expectations for RocketMap hosters.
Flask/werkzeug: Time taken for tests: 201.058 seconds Complete requests: 10000 Requests per second: 49.74 [#/sec] (mean) Time per request: 20.106 [ms] (mean, across all concurrent requests) 100% 87801 (longest request) The Sublimely Magnificent Node.js RM Webserver Mark III: Time taken for tests: 2.178 seconds Complete requests: 10000 Requests per second: 4591.51 [#/sec] (mean) Time per request: 0.218 [ms] (mean, across all concurrent requests) 100% 1222 (longest request)
As usual, these benchmarks depend on a lot of variables (e.g. hardware, OS, software versions, settings) so everyone will get different results, but I’m sure you’ll see some great improvements. 😉