Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement observation #192

Open
dantleech opened this issue Mar 29, 2014 · 9 comments
Open

Implement observation #192

dantleech opened this issue Mar 29, 2014 · 9 comments
Labels

Comments

@dantleech
Copy link
Contributor

This shouldn't be too hard in theory right?

@dbu
Copy link
Member

dbu commented Mar 31, 2014

not so sure - its not about event listeners in the same process, but
mostly about one process listening to events coming from other
processes. in php the listening is always polling - but you would need
to record the events somewhere outside the php processes so any client
connecting to that database can also connect to the event log.

@dantleech
Copy link
Contributor Author

But isn't doctrine-dbal its in the same process ?

@dbu
Copy link
Member

dbu commented Mar 31, 2014

if i have 2 webservers both talking to the same database, it won't even be on the same machine. already in one webserver we normally have several processes. plus you can have command line tools running that also do operations. observation is about the repository, not about the process - thats what i mean by its not an event listener in the symfony/doctrine sense.

@dantleech
Copy link
Contributor Author

ok i understand. so I guess we would have to add an event log table to the implementation and then have clients check this log. Its feasable?

@dbu
Copy link
Member

dbu commented Mar 31, 2014

and "something" that cleans up old log entries to not explode. but yes.
a better implementation would be based on a message queue like rabbitmq
so i guess this should be done in a way that we can plug different
implementations.

@dantleech
Copy link
Contributor Author

But would implementing another technology raise the bar a bit too far? What is conceptually wrong with just drumping it in a table? (disclaimer: I know nothing about rabbitmq :)

Jackrabbit does its own event logging I imagine?

@dbu
Copy link
Member

dbu commented Mar 31, 2014

with jackrabbit we get the events from the server, yes.

i agree with a simple implementation in a table, just saying we would
best build it in a pluggable way to make it easy to do a better
implementation for people who need it.

@dantleech
Copy link
Contributor Author

So pluggable on the jackalope level?

@dbu
Copy link
Member

dbu commented Mar 31, 2014

yes. or the jackalope-doctrine-dbal level. i think we made it a
transport layer job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants