kratos
tokio
Our great sponsors
kratos | tokio | |
---|---|---|
10 | 196 | |
22,390 | 24,610 | |
1.2% | 2.5% | |
8.9 | 9.5 | |
11 days ago | about 22 hours ago | |
Go | Rust | |
MIT License | MIT License |
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.
kratos
-
Best golang framework for microservice
https://github.com/go-kratos/kratos has good examples for project layout
-
Most Popular GoLang Frameworks
Website: https://go-kratos.dev,
-
why everyone keeps comparing Go with Rust?
Golang ๐ช is a well oiled language for high-performance backend web components. Take Kratos a popular microservices framework.
-
A Command-line tool to statistics the GitHub repositories
$ github-compare zeromicro/go-zero go-kratos/kratos asim/go-micro go-kit/kit โโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ โ METRICS โ ZEROMICRO/GO-ZERO โ GO-KRATOS/KRATOS โ ASIM/GO-MICRO โ GO-KIT/KIT โ โโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโค โ ๐ homepage โ https://go-zero.dev โ https://go-kratos.dev โ https://go-micro.dev โ https://gokit.io โ โ ๐ language โ Go โ Go โ Go โ Go โ โ ๐ license โ MIT License โ MIT License โ Apache License 2.0 โ MIT License โ โ โฐ age โ 655 days โ 1231 days โ 2688 days โ 2668 days โ โ ๐ stars โ 17778(27/d) โ 17856(14/d) โ 18233(6/d) โ 23084(8/d) โ โ ๐ latestDayStarCount โ 33 (up) โ 7 (down) โ 2 (down) โ 10 (up) โ โ ๐ latestWeekStarCount โ 227 (up) โ 64 (down) โ 31 (down) โ 44 (down) โ โ ๐ latestMonthStarCount โ 916 โ 531 โ 176 โ 235 โ โ ๐ forks โ 2520(3/d) โ 3446(2/d) โ 2087(0/d) โ 2315(0/d) โ โ ๐ watchers โ 266 โ 424 โ 510 โ 690 โ โ ๐ช issues โ 50/741 โ 51/793 โ 76/914 โ 35/548 โ โ ๐ฏ pull requests โ 13/1155 โ 10/1221 โ 0/1513 โ 9/627 โ โ ๐ฅ contributors โ 132 โ 198 โ 166 โ 221 โ โ ๐ releases โ 63 โ 49 โ 206 โ 12 โ โ ๐ญ release circle(avg) โ 10 days โ 25 days โ 13 days โ 222 days โ โ ๐ฏ lastRelease โ 24 day(s) ago โ 1 day(s) ago โ 5 day(s) ago โ 8 month(s) ago โ โ ๐ฆ lastCommit โ 2 day(s) ago โ 2 hour(s) ago โ 5 day(s) ago โ 6 day(s) ago โ โ ๐ lastUpdate โ 47 minute(s) ago โ 16 minute(s) ago โ 1 hour(s) ago โ 1 hour(s) ago โ โโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
- Kratos - Your ultimate go microservices framework for the cloud-native era.
- Which microservice framework should I choose?
- Kratos 2.2 Released: A Go Framework for Cloud-Based Microservices
- Show HN: Go-kratos โ Golang microservices framework
-
Don't Panic: Catching Panics in Errgroup
Kratos errgroup
-
Gopher Gold #21 - Wed Nov 25 2020
go-kratos/kratos (Go): Kratosๆฏbilibiliๅผๆบ็ไธๅฅGoๅพฎๆๅกๆกๆถ๏ผๅ ๅซๅคง้ๅพฎๆๅก็ธๅ ณๆกๆถๅๅทฅๅ ทใ
tokio
-
On Implementation of Distributed Protocols
Being able to control nondeterminism is particularly useful for testing and debugging. This allows creating reproducible test environments, as well as discrete-event simulation for faster-than-real-time simulation of time delays. For example, Cardano uses a simulation environment for the IO monad that closely follows core Haskell packages; Sui has a simulator based on madsim that provides an API-compatible replacement for the Tokio runtime and intercepts various POSIX API calls in order to enforce determinism. Both allow running the same code in production as in the simulator for testing.
-
I pre-released my project "json-responder" written in Rust
tokio / hyper / toml / serde / serde_json / json5 / console
-
Cryptoflow: Building a secure and scalable system with Axum and SvelteKit - Part 0
tokio - An asynchronous runtime for Rust
-
Top 10 Rusty Repositories for you to start your Open Source Journey
3. Tokio
-
API Gateway, Lambda, DynamoDB and Rust
The AWS SDK makes use of the async capabilities in the Tokio library. So when you see async in front of a fn that function is capable of executing asynchronously.
-
The More You Gno: Gno.land Monthly Updates - 6
Petar is also looking at implementing concurrency the way it is in Go to have a fully functional virtual machine as it is in the spec. This would likely attract more external contributors to developing the VM. One advantage of Rust is that, with the concurrency model, there is already an extensive library called Tokio which he can use. Petar stresses that this isnโt easy, but he believes itโs achievable, at least as a research topic around determinism and concurrency.
-
Consuming an SQS Event with Lambda and Rust
Another thing to point out is that async is a thing in Rust. I'm not going to begin to dive into this paradigm in this article, but know it's handled by the awesome Tokio framework.
-
netcrab: a networking tool
So I started by using Tokio, a popular async runtime. The docs and samples helped me get a simple outbound TCP connection working. The Rust async book also had a lot of good explanations, both practical and digging into the details of what a runtime does.
-
Thread-per-Core
Regarding the quote:
> The Original Sin of Rust async programming is making it multi-threaded by default. If premature optimization is the root of all evil, this is the mother of all premature optimizations, and it curses all your code with the unholy Send + 'static, or worse yet Send + Sync + 'static, which just kills all the joy of actually writing Rust.
Agree about the melodramatic tone. I also don't think removing the Send + Sync really makes that big a difference. It's the 'static that bothers me the most. I want scoped concurrency. Something like <https://github.com/tokio-rs/tokio/issues/2596>.
Another thing I really hate about Rust async right now is the poor instrumentation. I'm having a production problem at work right now in which some tasks just get stuck. I wish I could do the equivalent of `gdb; thread apply all bt`. Looking forward to <https://github.com/tokio-rs/tokio/issues/5638> landing at least. It exists right now but is experimental and in my experience sometimes panics. I'm actually writing a PR today to at least use the experimental version on SIGTERM to see what's going on, on the theory that if it crashes oh well, we're shutting down anyway.
Neither of these complaints would be addressed by taking away work stealing. In fact, I could keep doing down my list, and taking away work stealing wouldn't really help with much of anything.
-
PHP-Tokio โ Use any async Rust library from PHP
The PHP <-> Rust bindings are provided by https://github.com/Nicelocal/ext-php-rs/ (our fork of https://github.com/davidcole1340/ext-php-rs with a bunch of UX improvements :).
php-tokio's integrates the https://revolt.run event loop with the https://tokio.rs event loop; async functionality is provided by the two event loops, in combination with PHP fibers through revolt's suspension API (I could've directly used the PHP Fiber API to provide coroutine suspension, but it was a tad easier with revolt's suspension API (https://revolt.run/fibers), since it also handles the base case of suspension in the main fiber).
What are some alternatives?
go-zero - A cloud-native Go microservices framework with cli tool for productivity.
async-std - Async version of the Rust standard library
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Rocket - A web framework for Rust.
go-kit - A standard library for microservices.
hyper - An HTTP library for Rust
go-zero - go-zero is a web and rpc framework written in Go. It's born to ensure the stability of the busy sites with resilient design. Builtin goctl greatly improves the development productivity. [Moved to: https://github.com/zeromicro/go-zero]
futures-rs - Zero-cost asynchronous programming in Rust
Fiber - โก๏ธ Express inspired web framework written in Go
smol - A small and fast async runtime for Rust
gin-vue-admin - ๐Vite+Vue3+Gin็ๅผๅๅบ็กๅนณๅฐ๏ผๆฏๆTSๅJSๆทท็จใๅฎ้ๆไบJWT้ดๆใๆ้็ฎก็ใๅจๆ่ทฏ็ฑใๆพ้ๅฏๆง็ปไปถใๅ้กตๅฐ่ฃ ใๅค็น็ปๅฝๆฆๆชใ่ตๆบๆ้ใไธไผ ไธ่ฝฝใไปฃ็ ็ๆๅจใ่กจๅ็ๆๅจๅๅฏ้ ็ฝฎ็ๅฏผๅ ฅๅฏผๅบ็ญๅผๅๅฟ ๅคๅ่ฝใ
rayon - Rayon: A data parallelism library for Rust