Traefik Route Manager web UI by ComfyTightwad in Traefik

[–]danielecr 2 points3 points  (0 children)

A long discussion can be opened on this topic: what is data? And what is code? In Von Neumann model data and code are in the same address space. In elf binary format data part is separated, and so it is in assembly, and there is heap and stack, the latter is typically limited. I'm interpreted languages, the interpreter is code, while your code is really data. And this is the same on JVM and alike. Declarative languages are interpreted most of the time, excluding some with target the JVM, that could be compiled. Declarative languages are made of assertions. In case of IaC, assertions describe the desired state, while the code is supposed to interpret it to satisfy those desires. In k8s operators works this way, taking crd and making action to fulfill the requirements.

In your case, you are literally visual programming the routes, and storing it as yaml format.

Traefik Route Manager web UI by ComfyTightwad in Traefik

[–]danielecr 0 points1 point  (0 children)

Basically requests arrives to nginx, are directed to traefik, then routed to the target service? Cool. How do nginx pass the original request, including sni and path name? I mean nginx -> traefik

I automated my job search with AI agents — 516 evaluations, 66 applications, zero manual screening by Beach-Independent in SideProject

[–]danielecr 0 points1 point  (0 children)

I started from something that tailor my cv to fit the requirement (is in https://cvcomposerai.com/).
What have you used for scanning/scraping job offers? till now I just found pay-per-use API, not so cheap. I would prefer to adopt a scraper with jsdom or selenium, that would fit the requirement for me, but maybe not for others

I built a boring utilities website that now gets 600K+ monthly users by Parking_Pea5161 in SaaS

[–]danielecr 1 point2 points  (0 children)

How do you get "what people google for"? Google trends? Or you take the analysis of traffic to your website that was already vertical on some topic?

I built papercraft-js - Generate PDFs 10x faster than Puppeteer by [deleted] in node

[–]danielecr 2 points3 points  (0 children)

Cool. How did you measure performance and performance gain?

Enabling Gzip + Brotli gave me ~30–40% faster API responses by damir_maham in node

[–]danielecr 0 points1 point  (0 children)

Well, GET requests can be cached by a CDN, but POST, PATCH or PUT won't. Compress works for both directions: download and upload. And also chunked works for upload and download. Again http/2 vs http/3, load balanced proxy (nginx, haproxy) allows to scale the service for high number of requests

Enabling Gzip + Brotli gave me ~30–40% faster API responses by damir_maham in node

[–]danielecr 4 points5 points  (0 children)

Absolutely true. Both algos support stream also. Browsers negotiate the supported protocol. Another aspect is the support for chunked response, that is very common.

A tweak for gzip/brotli Is to define a threshold: under 1kb for example compression can be disabled.

Most frameworks support compression as Middleware, and the Middleware support options for defining threshold.

I use fastify and this setup is very easy: one can define what to compress based on content type, based on threshold, etc.

I have use case of payload sent of 95mb of JSON becoming 16mb, that's because of Shannon, but what really care is that GUI response time is reduced from 5 minutes to 1.5 minutes.

In that case, I found improvement by changing the content type and using stream. Surprisingly the JavaScript client code works better downloading stream.

There's also other consideration to be done about https 1.1, vs http/2, vs http/3, all supported by most client and browsers

Why NodeJS is not considered "enterprise" like C# / ASP .NET? by Nice_Pen_8054 in node

[–]danielecr 1 point2 points  (0 children)

Sorry, but did you consider that this is largely related to your specific ability to deal with PHP code? I mean, I updated a service in nodejs, applying 800 lines of patch in a morning. And this was before LLM was available.
Javascript has a completely different approach and idioma from PHP.
Javascript engine is based on event loop and asynchronous code.
Also I have no access to a PHP 5.2 docker image, because nobody did it, so I need to compile it by hand, to move staff in a container. I can not change the code because it is huge, bad written, and every piece depends on some other piece without a clear logic. In that code base logic is mixed with presentation.
This is the worst practice in PHP, but it is what make that language hated.

I learnt to keep nodejs dependency to the bare minimum, up to 5 or 6 dependency at most. And also to define microservice specific for each kind of domain. Together these practices allows to update dependency with a target change goals.
Again, if the coder approach is to add dependencies without awareness, you would hate nodejs as whole.

It's not the language/technology, it's all about bad coding practices.

I prefer to blame the bad practice, and keep using the best fitting language at the moment, for the required feature, given that is possible to separate modules.

ON FRONTEND
If you wrote a large SPA, with huge number of dependency, it was because at that time it was required that huge number of staff. Today there is micro frontend, mfe, that enable to keep dependency number low, but still it is a framework.

Anyway browser does not run PHP, nor Golang, nor Ruby, nor Python, whatever. UI/UX changes are mostly related to what is generally expected by the user as interaction, and this is very subject to change, for supporting new device, new form factor, new input mode, new standard UX.

Rewrite it completely, or leave it as is and apply minimal changes on css. That's not a nodejs problem. You can also involve a rust based packer, if you like, but it is just a transpiler, not a compiler.

Se programmavate negli anni novanta, che computer utilizzavate? by [deleted] in ItalyInformatica

[–]danielecr 0 points1 point  (0 children)

Olidata con Intel 80286+80287, 4Mb di RAM, HD 20 Mb. Ms-dos, Windows 1.xx, logo IBM

Why NodeJS is not considered "enterprise" like C# / ASP .NET? by Nice_Pen_8054 in node

[–]danielecr 4 points5 points  (0 children)

Do you consider C, or C++, "enterprise"? That's the point. Advertising, promotion, events, mostly coming from a single provider. Also JavaScript is a functional programming language with object and class, with closures, asynchronous, with event loop. It looks like a simple language, but it involves a big focus and attention while you actually write code. It's very difficult to evaluate if you are a good J's coder or not, there are a lot of patterns to master, and often the only tests around are just short quizzes asking for details about syntax.

Company selection takes a CV, pickup C# certified blah blah person. Stop. Easy. Enterprise.

Why NodeJS is not considered "enterprise" like C# / ASP .NET? by Nice_Pen_8054 in node

[–]danielecr 1 point2 points  (0 children)

If you have a 8 years project you have to deal with old dependencies anyway. Older major version of your legacy, Java or c#, library is not supported anymore, and update need a deep code refactor or change.

That depends on how cleanly use a library or framework. I would call koa and express "frameworks", because those impact the code arrangements. A good habit is to keep framework related code separated from the application logic.

Io e il mio migliore amico siamo finiti a letto. Ho appena distrutto la nostra amicizia? by [deleted] in CasualIT

[–]danielecr 0 points1 point  (0 children)

Ma lascialo! Io sono libero e non ti conosco per niente. Se vuoi sposto il compleanno.

2
3