Skip navigation
All Places > Alfresco Content Services (ECM) > Blog > 2017 > September

Event streams are becoming common place, they allow external applications to "listen" to what's happening within the server. AWS make use of this pattern in several of their services, S3 and DynamoDB being two examples.


This is a capability we are considering adding to the Digital Business Platform in the future. Rather than waiting for the new event stream I thought it would be an interesting experiment to build an example using existing Alfresco technologies. The example uses the events generated for desktop sync and uses Apache Camel to push them to Kinesis Firehose. Once the events reach AWS they are processed by Lambda functions and any uploaded images analysed by Rekognition.


The architecture for the example is shown in the diagram below (click to enlarge).




The fictional use case is based on a vehicle insurance company claim process that only deals with cars, motorcycles and bicycles. Their process automatically analyses images added to the system, converts them to a custom type, generates a unique and sets a claim type property if the type of vehicle can be detected by Rekognition. Full technical details can be found here.


The Camel route used to send events from ActiveMQ to Firehose, custom model and configuration are provided in simple JAR modules for the Repository and Share available from here


Everything required to deploy and run the demo is available in this GitHub repository. Clone the repository to your local machine using the command below and follow the deployment instructions.

git clone .


Once the repository is up and running follow the detailed demo steps to upload images to the system and see the metadata in Alfresco get updated automatically.


If you take a look at the Lambda function used for processing the uploaded images you'll see it's already getting quite complex and breaking a few best practices; it's doing more than one thing, the repository password is being passed in plain text and the approach is not very scalable, in terms of performance, cost and architecture.


The Lambda function is effectively a multi-stage process which feels like an ideal fit for Step Functions!


Over the next few weeks I'm going to improve the solution by swapping the single Lambda function for several smaller Lambda functions that are orchestrated by Step Functions, simplify and secure the infrastructure setup and introduce a continuous delivery pipeline, so stay tuned!

Hi Guys,


The newest version of Community RM is available. You can download 2.6.b here. This release provides support for the Alfresco Community Edition 201707 GA Release.


In this release:

We have extended the REST API mentioned by Ana in her post back in June, by adding the complete record action allowing clients to complete a record using the record id.

 Governance services REST API

This release also includes some performance fixes focused around browsing the file-plan.


We fixed a few bugs in this release, for full details see here or you can read the quick overview below.


RM-4249: Fixed a compatibility issue between Audit and Alfresco 5.2

RM-5033: Fixed an issue around email notifications and vital records.

RM-5311: Added headers to the Swagger API documentation page to prevent caching


There were also a few minor security updates.


We're intending to increase the frequency of our community releases from now onwards. So whilst each release will have fewer features, you won't have to wait as long to get your hands on what we've been working on. 


Any thoughts or questions on anything in this or any other release feel free to get in touch with us.





Filter Blog

By date: By tag: