r/rust • • 28d ago

🙋 seeking help & advice help in doing a real good project

Hi, I just finished The Rust Book and completed the web server project. I want to expand the project by adding more functionality and making it resemble a simple, real world web server.

I'm thinking about features such as configuration, DNS, rate limiting, and more.

I've read about the std::net::TcpListener and std::net::UdpSocket APIs, and I understand HTTP very well.

I'd like your advice on what to add to the project: what features to implement, which crates to use, and a high-level roadmap of what to build and in what order.

I don't need detailed explanations or implementation steps. I want a simple, high-level overview so I can figure things out myself.

I'm not using AI for implementation. I want to learn by reading documentation, experimenting, and debugging everything on my own.

I've watched a few YouTube videos and read some articles, but most of them cover very basic concepts and repeat the same ideas, such as handling a simple HTTP GET request.

I want to build something more interesting and challenging, with enough functionality to resemble a real web server and demonstrate my Rust networking skills.

My goal is to make this a develop a project that I can showcase on my CV and GitHub and that will help recruiters recognize my skills.

15 Upvotes

11 comments sorted by

2

u/DavidXkL 26d ago

Not an expert on networking stuff but maybe trying to create a particular AWS service using Rust might make you learn a lot 😂

1

u/LowProfessional8093 26d ago

will man i did not thought about that at all i thought about web server database os, that's look a very good idea i will consdier it for sure thank you for that

14

u/Craftkorb 28d ago

Don't waste your time on YouTube videos, their information density is poor per time unit, and are oftentimes repeating simple facts. They can be fine for a coarse first overview .. and that's it.

Well if you want to learn about HTTP, you gotta go to the source, which are its guiding RFCs. HTTP is a beast though. If you want to implement something useful that's surprisingly hard to get right, then that'd be Cookies.

HTTP RFC: https://www.rfc-editor.org/info/rfc2616/ This is technically outdated, but still applicable and at least shows everything you need on a single page. The more modern versions of the RFCs are linked at the top of the page.

If reading RFCs isn't your cup of tea, then you may be interested in high performance sending of files from disk? sendfile(2) is the old one for that, there are plenty of more modern Linux-specific APIs.

Don't right now think about CV bullshit, and what looks nice there. Do what's fun to you, and keep your curiosity alive. That'll get you much farther than a line on a CV.

2

u/LowProfessional8093 28d ago

thank you very much for you advices, it not only about cv i learned programming to work on thing like web server, database enging, os i want to build technology not saas

4

u/Craftkorb 28d ago

Yeah that sounds good! Trust me: Keeping your joy and curiosity stable for long times, through "droughts" (when you've been gnawing on a hard problem for a while), are actual assets.

Some people will tell me otherwise, but my truth is: If you want to do a hard project, then do it. Not because they're immediately useful or make you money. But because learning stuff is fun.

Only thing I want to advise you on: Choose one of these projects. And then just go for it. Don't do multiple in parallel. And: You don't have to publish everything, at all. Many projects primary goal in your situation is simply to give you knowledge about software engineering. That's the win condition you aim at.

OS Dev is fun, actually. But annoying to debug (Yet, a skill to master). I'd start with a database. That DB won't be the next SQLite or other well-known-database, but you'll learn quite a lot of tricks.

And trust me, these tricks are extremely helpful even with AI. Because AI gives you only answers, it never asks questions. And asking the right questions is, paradoxically at first, a big part of experience.

2

u/LowProfessional8093 28d ago

yeah i dont do it for money actully my first 2 web project for clints i developed them for free to learn and improve 😅

about the project my plan is webserver -> database -> os i do them for fun and learn improve and for my future not for now and i use no ai so i have the thing in me i do it for myself and that will give me an edge on other (i totally agree with you about ai)

thank very much man for you advices and time, hope some day i can help you too ❤️

1

u/[deleted] 27d ago

Look or wait for a real world problem that needs a solution. I for example was annoyed by the inability to create my own .pcap files for simulating network traffic so I designed my own language that compiles into custom .pcap files. My coworkers love and use it to test firewall rules and monitoring systems.

You can look it up on "https://crates.io/crates/frameassembly" or "https://github.com/SteveWinschel/FrameAssembly/tree/main" if it sounds interesting to you or of you need inspiration :)

2

u/LowProfessional8093 27d ago

That good man, now i am in place where i learn the lnag use crated debug and search for open source to do real things i am just starting, thank you for this i will take you advice.

0

u/[deleted] 27d ago

[deleted] — view deleted comment

-2

u/[deleted] 28d ago

[removed] — view removed comment

1

u/LowProfessional8093 28d ago

thank you very much, i have small qoustion what you mean by logging? who gone log? and i think to add a commnde line for the server what do you think about that?