Search squid archive

Re: external helper development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/1/22 17:09, André Bolinhas wrote:

between Python and Go and is the best for multithreading and concurrency?

Sorry, I do not know the answer to that question (or even if there is a meaningful answer).


Rust supports multithreading and concurrency?

Yes, the fearless kind:
https://doc.rust-lang.org/book/ch16-00-concurrency.html


Cheers,

Alex.



-----Mensagem original-----
De: squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx> Em Nome De Alex Rousskov
Enviada: 1 de fevereiro de 2022 22:01
Para: squid-users@xxxxxxxxxxxxxxxxxxxxx
Assunto: Re:  external helper development

On 2/1/22 16:47, André Bolinhas wrote:
Hi

I’m building an external helper to get the categorization of an
website, I know how to build it, but I need you option about the best
language for the job in terms of performance, bottlenecks, I/O blocking..

The helper will work like this.

1º  will check the hot memory for faster response (memcache or redis)

2º If the result not exist in hot memory then will check an external
api to fetch the categorie and saved it in hot memory.

In what language do you recommend develop such helper? PHP, Python, Go..

If this helper is for long-term production use, and you are willing to learn new things, then use Rust[1]. Otherwise, use whatever language you are the most comfortable with already (except PHP), especially if that language has good libraries/wrappers for the external APIs you will need to use.

Alex.
[1] https://www.rust-lang.org/
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux