Monday, May 12, 2025
HomeGolangConstructing cli stress testing software from scratch -- the place do I...

Constructing cli stress testing software from scratch — the place do I begin? – Getting Assist


I began constructing my cli-tool from scratch and really feel slightly bit misplaced.
I lastly determined to problem myself and to not use any AI-generation instruments. Nevertheless it’s a little bit of a wrestle as I actually acquired hooked up to them.
To date, I ve determined that this software would take an ip as arg and create a bunch of concurrent requests to the server (that is the place the place i hope to study concurrency so it’s actually caught in my head). Within the output it might present good formatted details about dealt with and failed requests, and latency and so forth.
It’s fairly easy i suppose. I hope to get to some stage of complexity when I’m completed with http and attempt to implement flags for web-sockets, e. g.
The thought additionally appeared interesing to me as i would wish to cope with some safety points – if i get it proper, i ought to implement some primary validation logic (ssh-keys or one thing) so the software isn’t utilized in black hat sort of state of affairs.
You probably have any sources or recommendation, please do. My purpose is to do it with out ai or any exterior libraries, in favor of actual studying.

Maybe this chapter of The Go Programming Language will be of use:

Go to web page 17. “1.6. Fetching URLs Concurrently”. And check out the accompanying code:

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments