Auth Web Microservice with rust using Actix-Web 1.0
Tutorial imprescindible no sólo para aprender a programar microservicios con #Rustlang.
https://gill.net.in/posts/auth-microservice-rust-actix-web1.0-diesel-complete-tutorial/
Tutorial imprescindible no sólo para aprender a programar microservicios con #Rustlang.
https://gill.net.in/posts/auth-microservice-rust-actix-web1.0-diesel-complete-tutorial/
Uno de los entornos de desarrollo de servidores web más conocidos para Rust, Actix-web, acaba de liberar su versión 1.0.
Una recopilación de características, ventajas y desventajas de tres de los más conocidos frameworks para la web con Rust: Rocket, Actix-web y Tower Web:
https://nordicapis.com/3-frameworks-for-building-apis-using-rust/
“Magic links” are a different approach. Instead of a single, long-lived password, the web app generates a new, unique secret code every time you want to login. The web app then sends you an email or an SMS with a link to login. This link contains this unique secret code: your short-lived shared secret.
https://blog.approveapi.com/tutorials/rust-actix-web-approveapi-magic-login-link/
The actix framework handles requests asynchronously, but in this case the handlers themselves are not implemented asynchronously, for example using futures. I decided to keep it simple at first.
On the Rust side of things, just TCP is implemented in the Rust Core. The current web frameworks (actix and rocket) are implementing everything up until HTTP though. So you don’t need to care where this is coming from.
If you want to use pure HTTP calls without any larger framework, you can install “crates” (equivalent to npm packages in the Node world) which implement the HTTP protocol (like hyper and tiny_http).
Actix web soporta HTTP/1.x
y HTTP/2
, streaming y pipelining, enrutamiento, compatibilidad con Tokio.rs, soporte a WebSockets, compresión/descompresión transparente de contenidos (br, gzip, deflate, zstd), servir ficheros estáticos, etc…
GitHub...
: https://github.com/actix/actix-web
crates.io
: https://crates.io/crates/actix-web
docs.rs..
: https://docs.rs/actix-web/latest/actix_web
manuel.cillero.es requiere el uso de cookies para ofrecer la mejor experiencia de acceso a sus contenidos. Puedes aceptar su uso o abandonar la página si lo deseas. Más información
ACEPTO SU USOWe may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.
Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.
These cookies are strictly necessary to provide you with services available through our website and to use some of its features.
Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.
We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.
We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.
We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.
Google Webfont Settings:
Google Map Settings:
Google reCaptcha Settings:
Vimeo and Youtube video embeds:
You can read about our cookies and privacy settings in detail on our Privacy Policy Page.
Política de privacidad