Last August, I tested the Dropwizard service with this setup which recorded about 20,000 RPM on GKE. This year, the same setup sent about 4,000 RPM to the Dropwizard service and the http-log plugin sent only about 200 RPM to the other service.
157 karma · joined October 24, 2008
Current interests include AI (both predictive and generative), distributed consensus, and open source.
Currently exploring how LLMs can enhance and augment the developer experience.
You can contact me at media at glennengstrand.info
Last August, I tested the Dropwizard service with this setup which recorded about 20,000 RPM on GKE. This year, the same setup sent about 4,000 RPM to the Dropwizard service and the http-log plugin sent only about 200 RPM to the other service.
The clojure service was in 13 files with a total of 710 Lines of Code. The python service was in 33 files with a total of 1561 LoC.
I also have published load test results of these microservices at http://glennengstrand.info/software/performance/eks/gke where you will find the per minute average throughput for these two microservices to be about the same but the clojure version was about twice as slow as the python version.
http://stackoverflow.com/questions/1677419/does-scala-suppor...
wc `find ~/git/clojure-news-feed/server/feed/src -type f -name '.clj' -print | xargs`
wc `find ~/git/clojure-news-feed/server/feed/test -type f -name '.clj' -print | xargs`
wc `find ~/git/clojure-news-feed/server/feed2/src -type f -name '*.scala' -print | xargs`
I used code size because you hear about that alot but I agree that it is a very imperfect basis. Less code doesn't necessarily mean fewer bugs. When I coded these two services, I wasn't thinking of code size at all.
glennengstrand.info/analytics/oss
Here you will see a blog, paper, and github repo of some map reduce jobs that take openly available San Francisco crime data and load it into an OLAP cube.
Since then, I have been playing with clojure with regards to data science. What I liked about clojure was that the programs looked more like transforming data sets with map, reduce, into, filter, merge-with, join, difference, union. You get more than just lists. You have maps, vectors, and sets too. The code looks like you are loading a lot of data into memory but with lazy sequences you are really processing these collections one element at a time. The so called threading macros (nothing to do with multi-threading) keeps the number of parenthesis down.