Comments (6)
I see, I think I could do something like this for now, but it would be awesome if Kaffe managed it internally in the future
Thanks!
from kaffe.
@rom8726 Kaffe doesn't currently support a single consumer with different connection settings. I think we have an older issue related to separating out those settings.
The only way I can think of to do that currently is to use an umbrella app.
from kaffe.
@objectuser is it possible to have multiple consumers using the same connection settings? I tried to umbrella-app approach, but it does not work as the Kaffe configuration is overridden across sub-apps
from kaffe.
@madshargreave That's unfortunate that the umbrella approach doesn't work.
I think multiple consumers would have the same problem.
We're interested in supporting multiple consumers but just haven't had time. Would you say #14 is essentially what you want?
from kaffe.
@objectuser Yes , being able to specify a message processor for each topic would be perfect
from kaffe.
👍
I recently refactored a project into an umbrella. I needed a separate configuration (not for Kaffe) for one of the projects. I was surprised how much umbrella projects want to use the same config everywhere.
What I did in this case was to point mix.exs
to a "local" configuration:
def project do
[
config_path: "config/local.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
...
]
end
That file, config/local.exs
, had project-specific configuration items, but then defered to the global config:
use Mix.Config
config :special_config,
so_special: :do_that_thing
import_config "../../../config/config.exs"
I've not tried this, but I wonder if the Kaffe configuration could replace the :special_config
in each sub-project, allowing a separate consumer config in each.
from kaffe.
Related Issues (20)
- Defining multiple handlers HOT 1
- worker_per_topic_partition with multiple topics HOT 1
- Examples not compatible with Elixir 1.10 or 1.11 HOT 2
- extract_der is giving error with SSL HOT 2
- Undefined function exponential_backoff HOT 10
- Offset doesn't get updated between runs and runs crash with OOM errors HOT 4
- async ack - lots of duplicate messages until I restart the application HOT 2
- Kaffe.Producer.produce_sync raises on timeout
- How to set kafka headers when publishing message HOT 1
- Invalid call to raise/reraise on brod/kpro error
- Add support for SCRAM mechanism in SASL authentication. HOT 1
- Module to help write ExUnit tests
- It's impossible to create 2 separate consumers for different topics
- Running mix with kaffe deps fails to download pc package from hex
- Wrong place for configuration
- Config dump on error leaks credentials HOT 1
- Endpoints configuration is weird for using ENV vars
- Missing documentation HOT 8
- Connecting to a TLS-based Kafka instance under AWS MSK? HOT 18
- Receives notification when rebalance in progress/assignments revoked HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaffe.