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
#گولنگ
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
#گولنگ
🚀 Kickstart Your Microservices Development with Go! 🚀
https://dev.to/teyz/kickstart-your-microservices-development-with-go-d86
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
#go #microservices #programming #opensource
▶️join: @readmemdd
🚀 Kickstart Your Microservices Development with Go! 🚀
https://dev.to/teyz/kickstart-your-microservices-development-with-go-d86
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
#go #microservices #programming #opensource
▶️join: @readmemdd
DEV Community
🚀 Kickstart Your Microservices Development with Go! 🚀
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
🚀 Kickstart Your Microservices Development with Go! 🚀
https://dev.to/teyz/kickstart-your-microservices-development-with-go-d86
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
#go #microservices #programming #opensource
▶️join: @readmemdd
🚀 Kickstart Your Microservices Development with Go! 🚀
https://dev.to/teyz/kickstart-your-microservices-development-with-go-d86
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
#go #microservices #programming #opensource
▶️join: @readmemdd
DEV Community
🚀 Kickstart Your Microservices Development with Go! 🚀
Are you looking to build robust, scalable microservices using hashtag#Golang? Look no further! I've...
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
#گولنگ
و نه اینکه بخواید بصورت 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
#گولنگ
Benchmark with Golang
https://dev.to/pedrobertao/benchmark-with-golang-md4
Hello Gophers 👋 In this blog post, I will show you how to use an awesome tool built into the #golang...
#go #testing #benchmark #backend
▶️join: @readmemdd
Benchmark with Golang
https://dev.to/pedrobertao/benchmark-with-golang-md4
Hello Gophers 👋 In this blog post, I will show you how to use an awesome tool built into the #golang...
#go #testing #benchmark #backend
▶️join: @readmemdd
DEV Community
Benchmark with Golang
Hello Gophers 👋 In this blog post, I will show you how to use an awesome tool built into the #golang...
👍1
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
ولی نحوه استفاده از اینترفیس با زبان های دیگه متفاوته
این مقاله توضیحاتی در این مورد داده
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
Mastering Efficient Data Serialization in Go: Boost Performance and Scale Your Applications
https://dev.to/aaravjoshi/mastering-efficient-data-serialization-in-go-boost-performance-and-scale-your-applications-4hem
Learn efficient data serialization in Go. Explore JSON, Protocol Buffers, and MessagePack. Optimize performance, handle errors, and ensure security. Boost your app's efficiency. #GoLang #Serialization
#programming #devto #go #softwareengineering
▶️join: @readmemdd
Mastering Efficient Data Serialization in Go: Boost Performance and Scale Your Applications
https://dev.to/aaravjoshi/mastering-efficient-data-serialization-in-go-boost-performance-and-scale-your-applications-4hem
Learn efficient data serialization in Go. Explore JSON, Protocol Buffers, and MessagePack. Optimize performance, handle errors, and ensure security. Boost your app's efficiency. #GoLang #Serialization
#programming #devto #go #softwareengineering
▶️join: @readmemdd
DEV Community
Mastering Efficient Data Serialization in Go: Boost Performance and Scale Your Applications
Learn efficient data serialization in Go. Explore JSON, Protocol Buffers, and MessagePack. Optimize performance, handle errors, and ensure security. Boost your app's efficiency. #GoLang #Serialization