Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7816151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:45:48+00:00 2026-06-02T05:45:48+00:00

My CQRS-based architecture currently has 4 components. It is more of a prototype so

  • 0

My CQRS-based architecture currently has 4 components. It is more of a prototype so nothing is set in stone yet.

  • CommandProcessor: Gets commands, executes them, etc. (duh ^^),
    publishes events. Is Azure-based
  • ViewProcessor: Gets view-requests,
    responds with the view. Subscribes to events to update view store. Is
    Azure-based
  • WebClient: AJAX-heavy web portal, sends commands and
    requests (json-)views. Azure-based
  • DesktopClient: Not much to say,
    also sends commands and requests views (undecided if json or some
    other format). Obviously not azure-based.

My original approach was to use an InMemory-Viewstore. Azure VMs have quite a bit of memory available and I didn’t really see the need to add the complexity Blob-Storage etc.
Additionally, I am trying to minimize the command-execution latency to at least partially get around the whole asynchronous UI problem so that I can (where needed) simulate a synchronous UI with (fast) callbacks (I hope that sentence made sense ^^).

In creating the web client, I noticed a potential flaw in my plan. The url of the ViewProcessor is obviously different to the WebClient-url, so json requests would fail because of the Same-Origin-Policy. Alternatives/Workarounds like jsonp did not seem that attractive because they don’t solve the inherent security problem. Implementing the ajax requests to target the WebClient itself would be an option but then I would have redundant functionality (view-store in both webclient and viewprocessor).

I guess saving the views in blob-storage would solve this problem, but I can’t shake the feeling that I am overlooking something important/obvious.

    Client --command-- CommandProcessor
    CommandProcessor --event-- ViewProcessor
    ViewProcessor --view-- Blob
    (ViewProcessor or CommandProcessor) --notification-- Client
    Blob --view-- Client

That scenario would have quite a bit of latency 😐

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:45:49+00:00Added an answer on June 2, 2026 at 5:45 am

    I would look again the blob storage option. We store serialized view objects in blob storage, and it is very fast and stable. Is there some aspect of blob storage that concerns you?

    Erick

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have set up an architecture based on DDD and CQRS. Additionally we have
All of the infrastructure components required to implement a CQRS based application seem to
One of the basic tenets of CQRS, as I understand it, is that commands
In my CQRS architecture, I'd like to validate that when I send a InsertSettingCommand
Getting into CQRS and I understand that you have commands (app layer) and events
At this moment we are building a new architecture that is based on the
My take on CQRS is when followed strictly your commands don't return anything (return
We are currently evaluating CQRS and Event Sourcing architectures. I am trying to understand
My application use CQRS architecture. Everything is performed through my aggregates, thus each user's
I am currently drafting a concept for a (mostly) HTML-based collaboration suite which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.