README.md
295 subscribers
20 photos
9 files
611 links
Everything about software engineering
⌨️

https://t.me/boost/readmemdd
Download Telegram
Forwarded from Go Casts 🚀
به به، یه سری مقاله برای concurrency در گولنگ، که به کمک تصویرسازی سعی کرده مفاهیم مهم concurrency در گولنگ رو توضیح بده، پیشنهاد می کنم چهار تا مقاله رو به ترتیب بخونید و نکته برداری کنید


Goroutines 102: A Basic Walkthrough
https://blog.devtrovert.com/p/goroutines-think-you-know-go-basics

Go Channels Explained: More than Just a Beginner’s Guide
https://blog.devtrovert.com/p/go-channels-explained-more-than-just

Select & For Range Channel in Go: Breaking Down
https://blog.devtrovert.com/p/select-and-for-range-channel-i-bet

Goroutine Scheduler Revealed: Never See Goroutines the Same Way Again
https://blog.devtrovert.com/p/goroutine-scheduler-revealed-youll

@gocasts

#golang #concurrency
#گولنگ
Forwarded from Go Casts 🚀
این مقاله رو نمیگم بخونید که جای net/http در گولنگ از fasthttp استفاده کنید
و نه اینکه بخواید بصورت non RFC compliant درخواست هاتون رو ارسال کنید

بلکه به شما نشون میده که ارسال یه http request چه مراحلی داره و بعدش میتونید به این فکر کنید که چطور بعضی از این مراحل رو کمتر کنید که عملکرد اپلیکیشن شما بهتر بشه

How I sent 500 million HTTP requests to 2.5 million hosts
https://www.moczadlo.com/2024/how-i-sent-500-million-http-requests-in-under-24h

مثلا شاید قسمت dns cache رو بشه با این کتابخونه بهبود داد
https://github.com/rs/dnscache

یا مثلا http.Client رو بگونه ای استفاده کنید که reuse کنه connection رو به کمک http.Transport
https://blog.cubieserver.de/2022/http-connection-reuse-in-go-clients/

The [Client.Transport] typically has internal state (cached TCP connections), so Clients should be reused instead of created as needed.
https://godocs.io/net/http#Client


توضیحات «دوره + تیمسازی بکند و گولنگ Go Casts» و تخفیف ۵۰ درصدی رو در این پست میتونید بخونید 👇
https://t.me/gocasts/491

@gocasts

#golang
#گولنگ
Forwarded from Go Casts 🚀
یکی از زیبایی های گولنگ اینترفیس هست، چیزی که فلسفه composition over inheritance رو به زیبایی هر چه تمام تر در گولنگ امکانپذیر کرده
ولی نحوه استفاده از اینترفیس با زبان های دیگه متفاوته
این مقاله توضیحاتی در این مورد داده
https://eli.thegreenplace.net/2023/the-power-of-single-method-interfaces-in-go/

اینم یه مقاله زیرخاکی از russ cox در مورد اینترفیس
Go Data Structures: Interfaces
Posted on Tuesday, December 1, 2009
https://research.swtch.com/interfaces

@gocasts

#golang #interface