6

Comparing Plain SQL, ORM and GraphQL Performance in Golang | GoPa | FAUN

 1 year ago
source link: https://factory.faun.dev/newsletters/i/comparing-plain-sql-orm-and-graphql-performance-in-golang-7b015122-d9ce-4c96-95b9-5e8f5c8da4e6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Comparing Plain SQL, ORM and GraphQL Performance in Golang

 
GoPa
 
The Gopher's newsletter featuring tutorials, news and libraries every week!
🌐 View in your browser.   |  ✍️ Publish on FAUN   |  🦄 Become a sponsor
 
 
Patrons
 
 
Get a .COM for just $6.98
 
 
A mighty domain for a mini price. Get your next big domain at Namecheap !
 
 
 
Teleport - the easiest, most secure way to access all your infrastructure.
 
 
Only the open-source Teleport Access Plane consolidates connectivity, authentication, authorization, and audit into a single platform to improve security and agility. Download Teleport at goteleport.com
 
4833ded111ffc1121255ce7e225fe03d.png
 
 
Sponsors
 
 
Best VPN Deal
 
 
NordVPN 68% Black Friday discount is here! 👉 Access anything online without restrictions 👉 Add extra layers of security to your digital life 👉 Get the best online protection tools along with your NordVPN service. 👉 Get 3 months FREE with the 2-year plan
 
93f3001674cbe10569ff014b55ae568e.jpg
 
 
From the web
 
 
Comparing plain SQL, ORM and GraphQL performance in Golang   ✅
 
 
Using GraphQL instead of SQL for server development saves lines of code

This tutorial evaluates how to use GraphQL to render server-side HTML templates. It compares a GraphQL solution to bare-bones SQL and to an ORM. The tutorial uses Golang with Graphjin for GraphQL, GORM for the ORM and PGX for the bare-bones SQL solution.
 
 
 
How Golang Evolves without Breaking Programs
 
 
Speaking at Gophercon 2022, the principal engineer for the Go programming language vowed that the Go will never not be backward compatible.
 
 
 
The carcinization of Go programs
 
 
Sometimes you just need to embed this one library written in another language into your program. This is a common thread amongst programmers time immemorial. This has always been a process fraught with peril, fear, torment, and lemon-scented moist towelettes for some reason.

Normally if you want to call a Rust function from Go, you have to go through some middleman like cgo. This works and is somewhat elegant for how utterly terrible a hack cgo is.

However, the main problem is that when you use cgo to link a Rust function into a Go program, you need to copy around the shared object that Rust generates. You can't check this shared object into your source tree (it needs to be unique per OS distribution per OS per CPU architecture, much like normal dynamically linked binaries are).
 
 
 
Creating transparent animated GIFs with Go and gg (golang)
 
 
The image/gif package of Go's standard library makes it quite easy to create animated GIF images. All you need to do is create your individual frames as an array of *image.Paletted and use gif.EncodeAll() to encode them into an animated GIF.
 
 
 
SSH port forwarding with Go
 
 
This post shows how to set up SSH port forwarding ("tunnels") - both local and remote - using the extended Go standard library.
 
 

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK