4 ms·
Architect/programmer here: Here is a list of how to be more resource efficient / cost effective: 1. Render dynamic assets to static html and cache them via a
by acd 6y ago
Architect/programmer here:
Here is a list of how to be more resource efficient / cost effective:
1. Render dynamic assets to static html and cache them via a Content delivery network CDN. This will take far less cpu resources than rendering dynamic content and it will be faster to serve to the users.
2. Set reasonably long cache expire headers for content so that content are cached locally in the browser.
3. Use fast data structures such as hash-tables, tree structures that provides O(1), O(log n) lookup of your data whenever possible.
4. Use fast programming languages and frameworks such as Go-lang, C++, Rust, Scala and Java instead of slower languages. Fast programming languages uses less resources than slow programming languages.
5. This is one controversial since its not the current trend, but consider when to use Mini services / Monoliths instead of Micro services. A Monolith is a single process on one or more host it has access to local CPU cache and memory which is very fast. Mini services/Monolith will be more compute resource efficient than a Micro service where the service call has to be JSON serialized and travel over the network and then deserialized.
List of efficient web frameworks:
https://www.techempower.com/benchmarks/#section=data-r19&hw=ph&test=query https://www.techempower.com/benchmarks/#section=data-r19&hw=...
List of search efficient data structures. Big Tech companies ask job interview questions on these data structures for reason of speed.
https://en.wikipedia.org/wiki/Search_data_structure https://en.wikipedia.org/wiki/Search_data_structure