795 karma · joined Jul 1, 2010 (16y ago) · 572 submissions
comment 10mo ago · link · parent
The "web service" is only the user facing part which bears the least load. Read caching is useful there too as users look at statistics, so calculating them once every 5-10 minutes and caching them is needed, as that requires scanning the whole database.
A CDN is something I don't even have. It's not needed for the amount of users I have.
If I was using Postgres, these writer processes + the web service would share the same read cache for free (coming from Posgres itself). The difference wouldn't be huge if I would migrate right now, but now I already have the custom caching.
comment 10mo ago · link · parent
It has been OK so far, but definitely I will have to migrate to Postgres at one point, rather sooner than later.
comment 11mo ago · link · parent
If you are using something which requires you to write the GraphQL schema manually and then adapt both the server and the client... it's a completely different experience and not that pleasant at all.
comment 1y ago · link · parent
comment 1y ago · link · parent
I issue a `cargo update` to upgrade the leaf dependencies and do automatic minor version updates. Issue cargo check. Some new warnings from `clippy`, but it still compiles and runs without problems. Could have deployed for 5 more years, but I decided to experiment more...
I upgrade some of the libraries to major new versions - I am experienced and I know which ones will upgrade without problem. They do upgrade without problem. Could have deployed for 5 more years but decided to walk the extra mile...
I upgrade the more problematic ones, especially actix_web, the web framework, which had a massive rewrite and a huge new release with almost completely different API surface... It's a bit difficult to understand the changes, especially some parts of the old code written for the old version (which I no longer remember), but in an hour I'm done. Afterwards `cargo outdated` does not report any outdated libraries. I deploy for the next 5 years. Zero problems since then.
Well, it's not decades yet, but I can imagine similar effort to maintain it over the next decade.
comment 1y ago · link · parent
Of course, all of this was mostly unneeded, but I just wanted to find out what am I getting myself into, and I was very happy with the result. My move to Rust was mostly not because of speed, but I still needed a fast language (where OCaml qualifies). This was also before the days of multicore OCaml, so nowadays it would matter even less.
comment 1y ago · link · parent
Nevertheless, I have fond memories of OCaml and a great amount of respect for the language design. Haven't checked on it since, probably should. I hope part of the problems have been solved.
comment 1y ago · link · parent
comment 1y ago · link · parent
It's much more interesting when we are talking about... say... an ant... Does it "decide"? That I have no idea as it's probably somewhere in between, neither a sentient decision, nor a mathematical one.
comment 1y ago · link · parent
You have that on a single node. If you need to run more than one node, you will end up inventing your own on top of mnesia and usually the results are not spectacular or/and you will end up paying happihacking to do it for you. Or one of the other Erlang oldtimers who you can count on the fingers of your hands.
This is really suboptimal compared to what you can achieve by using any normal language + any message bus. You are actually much better using a proper message bus even if you use Erlang.
comment 1y ago · link · parent
We are a small, family consultancy. Each of us has more than 15 years of professional experience in many stacks ranging from PHP, Erlang, through TypeScript/React to Rust. We have been in Team Lead/Architect/CTO roles in the past.
We have built multiple full-stack systems for clients from scratch, often acting as the whole dev team or the core of it while hiring and mentoring their in-house team. Of course we are also capable of taking on your legacy systems and developing them to the next level.
Although we work as B2B contractors, we usually have long-lasting relations with our clients, spanning many years.
Currently we specialize in Rust, TypeScript + React and Kuberenetes but we are flexible and experienced with many technologies.
LinkedIn: https://www.linkedin.com/in/metin-akat/ https://www.linkedin.com/in/rumyana/
GitHub: https://github.com/loxs https://github.com/rumyanar
More extensive CVs/portfolio available upon request.
comment 1y ago · link · parent
So far I don't know any better way of doing it and I have tried all the classic ways like PHP, Django etc. This is way superior. The only downside is that I am the only one who can touch the backend, but I guess if some of the projects grows enough, there will be enough incentives to find another Rust programmer besides me.
comment 1y ago · link · parent
And no, knockout.js is not better than React :)
comment 1y ago · link · parent
You can write MVVM as an unmaintainable mess also. From my experience as a freelancer, I have had much harder time fixing badly written Angular projects (all versions) than such written in React. It seems that people as a whole tend to produce much better React than any other UI code that I have encountered ever. (and I have done my share of Desktop/Mobile too). Flutter is great, but it's also practically React in a proper language.
comment 1y ago · link · parent
No need to trust my word, just look at the huge amount of code in JSX that the world is maintaining at the moment.
I would say the only problem is the performance cost that we have to pay for this - the shadow DOM and (as a result) the hooks mess that we have in React. But it feels more like a problem that needs to be solved in order to use the much superior way of writing code (JSX). Not the other way around (sacrifice JSX for performance)
And I get that it can be overwhelming if you still haven't made the "jump", it just doesn't sound fair to criticize something that you don't understand.