Message system implemented in core and persistence