Comments (3)
Yeah, it does make sense. However, until now we've been using avro schemas against micro services and our aggregates were easily distinguished by name within single project. I understand that you want to somehow tell djangoevents to use avro schemas that are i.e. put into subdirectories of main schema dir or distributed within Python packages, right?
Looks like this can be quite easily accomplished with some custom schema loading mechanism. I.e. we could change djangoevents.schema.event_to_schema_path
method to use some aggregate's/event's method that returns absolute path to the schema (and fallback to current behaviour).
So at the event you could do something like:
class Person(BaseAggregate):
schema_dir = '/my-avro-schemas-dir'
class Updated(DomainEvent):
pass
Then you could probably prepare some base aggregate classes for each module.
This should be enough for most use cases I believe. Does it sound good or do you think of another solution? Would you like to prepare a PR for this?
from djangoevents.
@fmeurou can you elaborate on your use case? What do you mean by "creating modules"? Do you maybe have some working code or will to prepare a pull request for the feature?
from djangoevents.
from djangoevents.
Related Issues (10)
- Setup Travis CI for pull request and master build HOT 1
- Repository should use timestamp instead of id for query ordering
- Better name for publish method
- Allow to configure event store table name
- Python 2 support
- New eventsourcing version HOT 1
- Move readme from .md to .rst format to support better readability on pipy page
- Example project HOT 2
- Having both app.py and apps.py is confusing
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 djangoevents.