洞察企业如何通过模块化APP集成工具高效管理多平台小程序
710
2022-10-10
karafka 基于Apache Kafka的Ruby和Rails应用程序开发框架
Note: Documentation presented here refers to Karafka 1.3.x.
If you're upgrading from 1.2.0, please refer to our Upgrade Notes article.
If you are looking for the documentation for Karafka 1.2.x, it can be found here.
About Karafka
Framework used to simplify Apache Kafka based Ruby applications development.
Karafka allows you to capture everything that happens in your systems in large scale, providing you with a seamless and stable core for consuming and processing this data, without having to focus on things that are not your business domain.
Karafka not only handles incoming messages but also provides tools for building complex data-flow applications that receive and send messages.
How does it work
Karafka provides a higher-level abstraction that allows you to focus on your business logic development, instead of focusing on implementing lower level abstraction layers. It provides developers with a set of tools that are dedicated for building multi-topic applications similar to how Rails applications are being built.
Some things you might wonder about:
You can integrate Karafka with any Ruby-based application.Karafka does not require Sidekiq or any other third party software (apart from Kafka itself).Karafka works with Ruby on Rails but it is a standalone framework that can work without it.Karafka has a minimal set of dependencies, so adding it won't be a huge burden for your already existing applications.Karafka processes can be executed for a given subset of consumer groups and/or topics, so you can fine tune it depending on your business logic.
Karafka based applications can be easily deployed to any type of infrastructure, including those based on:
HerokuCapistranoDockerTerraform
Support
Karafka has a Wiki pages for almost everything and a pretty decent FAQ. It covers the whole installation, setup, and deployment along with other useful details on how to run Karafka.
If you have any questions about using Karafka, feel free to join our Gitter chat channel.
Getting started
If you're completely new to the subject, you can start with our "Kafka on Rails" articles series, that will get you up and running with the terminology and basic ideas behind using Kafka:
Kafka on Rails: Using Kafka with Ruby on Rails – Part 1 – Kafka basics and its advantagesKafka on Rails: Using Kafka with Ruby on Rails – Part 2 – Getting started with Ruby and Kafka
If you want to get started with Kafka and Karafka as fast as possible, then the best idea is to just clone our example repository:
git clone https://github.com/karafka/example-app ./example_app
then, just bundle install all the dependencies:
cd ./example_appbundle install
and follow the instructions from the example app Wiki.
Note: you need to ensure, that you have Kafka up and running and you need to configure Kafka seed_brokers in the karafka.rb file.
If you need more details and know how on how to start Karafka with a clean installation, read the Getting started page section of our Wiki.
Notice
Karafka framework and Karafka team are not related to Kafka streaming service called CloudKarafka in any matter. We don't recommend nor discourage usage of their platform.
References
Karafka frameworkKarafka Travis CIKarafka Coditsu
Note on contributions
First, thank you for considering contributing to Karafka! It's people like you that make the open source community such a great community!
Each pull request must pass all the RSpec specs and meet our quality requirements.
To check if everything is as it should be, we use Coditsu that combines multiple linters and code analyzers for both code and documentation. Once you're done with your changes, submit a pull request.
Coditsu will automatically check your work against our quality standards. You can find your commit check results on the builds page of Karafka organization.
Contributors
Sponsors
We are looking for sustainable sponsorship. If your company is relying on Karafka framework or simply want to see Karafka evolve faster to meet your requirements, please consider backing the project.
Please contact Maciej Mensfeld directly for more details.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~