baseplate.go
guide
baseplate.go | guide | |
---|---|---|
7 | 26 | |
89 | 15,269 | |
- | 0.9% | |
6.6 | 4.7 | |
13 days ago | about 1 month ago | |
Go | Makefile | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
baseplate.go
-
Just In Time Image Optimization at Reddit Scale
We chose to use govips which is a cgo wrapper around the libvips image manipulation library. The majority of new development for services in our backend is written using baseplate.go. But Go is not an ideal choice for media processing as it cannot keep up with the performance of native code. The most widely used image-processing libraries like libmagick are primarily written in C or C++. Speed was a major factor in selecting libvips in order to keep latency low on CDN cache misses for images. In our tests, libvips was 3–4 times faster than libmagick on basic image processing operations. Content-aware smart cropping was implemented by porting smartcrop.js to Go. This is the only operation implemented in pure Go.
-
Python use by SWEs
Even Reddit has python backends https://github.com/reddit/baseplate.py based on Pyramid. They also have a go one. https://github.com/reddit/baseplate.go
-
Reddit System Design/Architecture
there's a multitude of services in reddit's architecture. as far as i can tell, they mostly using reddit's baseplate framework (which has implementations in both python and go).
-
3 of the top 5 fastest web frameworks are written in Rust! (#1, #3 and #5)
FWIW, I believe Reddit has rewritten some Python into Go because of scaling issues. I don't know of any public write ups to confirm it, but at the least there's a public repo that contains their base template.
- How do you maintain quality of code in a Go project?
-
Evolving Reddit’s ML Model Deployment and Serving Architecture
Gazette Inference Service is a baseplate.go (Reddit’s golang web services framework) thrift service whose single responsibility is serving ML inference requests to it’s clients. It is deployed with Reddit’s modern kubernetes infrastructure.
-
Deadline Budget Propagation for Baseplate.py
Baseplate is implemented in Python and Go, and although they share the same main functionality, smaller features differ between the two. One such feature that was previously on the Go implementation but not Python was deadline budget propagation, which passes on the remaining timeout available from the initial client request all the way through the server and any other requests that may follow. The lack of this feature in Baseplate.py meant that many resources were being wasted by servers doing unnecessary work, despite clients no longer awaiting their response due to timeout.
guide
- I write HTTP services in Go after 13 years (Mat Ryer, 2024)
- Uber Go Style Guide
-
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
I'm pumped to learn Python. Are there any learning tools or docs I should focus on? For Go I liked the Uber Go Style Guide which represents a modern and idiomatic approach to Go and is a good tour of the language itself (for experienced engineers.) Is there something similar for Python?
- Course recommendation
- Is there a good place to find best practices?
-
Senior engineer here trying to pick up Go for jobs. What resources can you recommend me to cover as much ground as possible
https://github.com/uber-go/guide/blob/master/style.md - must have, write good go code from the beginning.
- Google’s Go Style Guide
-
Feedback for my first code
I really recommend reading: - Effective Go: https://go.dev/doc/effective_go#errors - Style Guide(by Uber): https://github.com/uber-go/guide/blob/master/style.md
-
Development guidelines
As you see - there are no reference to any technology or framework. There are a lot of best-practices for almost any framework, so you can choose an appropriate one. For example - if you're a rails developer, then you can check https://github.com/rubocop/ruby-style-guide and https://github.com/rubocop/rails-style-guide but if you're a golang developer - https://github.com/uber-go/guide/blob/master/style.md and https://developers.mattermost.com/contribute/more-info/server/style-guide/
-
[Beginner]How to structure my project with module and package?
Read ubers style guide first, its good to have some base rules that you follow when beggining. Heres the link: https://github.com/uber-go/guide/blob/master/style.md.
What are some alternatives?
Apache Thrift - Apache Thrift
uber-go-style-guide-th - Uber's Go Style Guide Translation in Thai. Linked to the uber-go/guide as a part of contributions https://github.com/uber-go/guide
markup.rs - A blazing fast, type-safe template engine for Rust.
uber-go-style-guide-kr - Uber's Go Style Guide Official Translation in Korean. Linked to the uber-go/guide as a part of contributions
golang-standards/project-layout - Standard Go Project Layout
awesome-linux-containers - A curated list of awesome Linux Containers frameworks, libraries and software
ireturn - Accept Interfaces, Return Concrete Types
automaxprocs - Automatically set GOMAXPROCS to match Linux container CPU quota.
Developer-Style-Guides - Style guides from Google, Facebook, Airbnb, Khan Academy and other tech organizations. Covers JavaScript, Swift, Java, Kotlin, and other popular languages. Made for developers by https://hotpot.ai.
uber-style-guide-ja
uber-go-guide-ru - Перевод гайдлайнов Uber по написанию Go кода.
clean-go-article - A reference for the Go community that covers the fundamentals of writing clean code and discusses concrete refactoring examples specific to Go.