Just a short note to help remember the event sourcing setup for MySQL.
CREATE DATABASE eventstore_db;
CREATE USER 'eventstoreuser'@'localhost' IDENTIFIED BY 'changeit';
GRANT SELECT, INSERT ON eventstore_db.* TO 'eventstoreuser'@'localhost';
Just a short note to help remember the event sourcing setup for MySQL.
CREATE DATABASE eventstore_db;
CREATE USER 'eventstoreuser'@'localhost' IDENTIFIED BY 'changeit';
GRANT SELECT, INSERT ON eventstore_db.* TO 'eventstoreuser'@'localhost';
When using this snippet the thread goes into some infinite loop.
// Handle multipart if (Request.Content.IsMimeMultipartContent()) { IEnumerableparts = Request .Content .ReadAsMultipartAsync() .Result .Contents; foreach (var part in parts) { // Do stuff with the part } }
You can use the following to prevent this:
public HttpResponseMessage Post() { // Handle multipart if (Request.Content.IsMimeMultipartContent()) { IEnumerableparts = null; Task.Factory .StartNew(() => parts = Request.Content.ReadAsMultipartAsync().Result.Contents, CancellationToken.None, TaskCreationOptions.LongRunning, // guarantees separate thread TaskScheduler.Default) .Wait(); foreach (var part in parts) { // Do stuff with the part } } return Request.CreateResponse(HttpStatusCode.OK, "Yeah, some text here..."); }
http://eventstore.js.org/
The project goal is to provide an eventstore implementation for node.js:
load and store events via EventStream object
event dispatching to your publisher (optional)
supported Dbs (inmemory, mongodb, redis, tingodb, azuretable)
snapshot support
query your events