So after seeing a load of crawlers and non-human traffic coming from pretty much every country but the US and UK, I decided to geo block every country except for the UK and US. Most if not all of the crawlers are harmless and just scrapers for large companies doing SEO research or scraping data for AI, but I thought I didn’t really need my data being scraped up by some bot. Of course the site is public so I can’t help nor would I want to decide who can view it or not, but found it made sense to limit the site to countries that speak the language, hence just locking it down to the UK and US. I was thinking about blocking Hosting/VPN’s too but seemed like overkill, I just need to limit the site from being scrapped by anything and everything and keep it open to HQ visitors/human beings.
Haven’t been able to get no where near the amount of coding I wanted to get done today because of my illness, but I’m still battling through it with coffee, tramadol and medical cannabis. The three tools for any coder in chronic pain that I think are essential. I've managed to get around half of the things done I had set out to fix or sort, so that's not bad going considering I've been in agony due to trying to reset the spacing for my tramadol doses.
I’m considering starting to learn the langue Go and the framework Gin to go with it, at lot of coders I watch online and transferring over to go from even languages like Rust due to it’s performance. A lot of people seem to be of the thinking that you don’t need a framework when using Go and some people empathize that’s the point of it to make it lightweight, however I’m really used to using a framework now to better build my apps with things like middlewear and controllers. So I think I’d probably learn Go alongside the framework Gin. This seems to be the most popular framework, but it would be interesting to benchmark both it and Go for scripts I currently have coded in Python for both performance in memory/cpu usage. From what I can tell, you can expect something like 50k-150k req/s with Go as opposed to 5k-25k req/s with python which is an insane difference.
I probably won't see the difference in speed until the amount of people using the application exceeds the amount that python can cater to, which I won’t be reaching anytime soon, but is interesting none of the less. The idea of using Laravel as mostly a frontend and python or something similar as a backend has grew on me a lot since doing the past few projects, as async is a nightmare with PHP as well as doing heavy lifting activities without freezing up the server and application. API requests however and stuff like that is fine, but any actual heavy operations done on the server, Laravel isn’t really suited to cater to it.