Sample application that leverages the caching, pub/sub and logging API for .NET applications.
#Architecture of the Application This application consists of two tiers:
- .NET Web Front End
- Standalone WCF service
The web front end allows the user to enter a new message. It also displays the currently cached message (which will initially be non existing). When the user hits Send the new message will be published on Apprenda's internal Message Bus.
The WCF service tier subscribes to Apprenda's internal Message Bus and it will place any message it receives into Apprenda's distributed cache. The web front end then reads the message back from the cache and displays it in the UI.
#Building from Source
- Clone the repository
- Open the Solution with Visual Studio
- Build the Solution
- Build an Apprenda Archive. The structure should be as follows: ** The root UI should be the Apprenda.Messaging.Web project ** The WCF Service layer should be the Apprenda.Messaging.Receiver project ** It is important that you deploy both components as one application because access to the Cache is scoped at an application level in this example.
- Deploy application to your Apprenda environment.
#Additional Notes:
- The application was built and tested using VS 2013 and the 6.5.1 version of the Apprenda SDK and Cloud Platform.
- A built and packaged version of the application is available for download as part of this repository.