How to split data into spaces

I think that the question about alerts is already answered in your previous post with the same name.

This question seems to be what architecture you should use, I suggest that you edit the name of your topic to reflect this and so this question is not seen as a duplicate of your other question.