AEM with Ehcache.

This blog explains the steps required to setup EhCache in AEM. AEM based CMS applications leverage caching at one of the following layers.

CDN

AEM instance can take advantage of Content Delivery Networks (CDN) to cache all the static content be its HTML pages, images or Videos. Once a static content gets published via the Content Delivery Network, it gets cached on the CDN for a particular duration. For, e.g., Fastly, Akamai

Varnish

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Varnish Cache is fast. It sits between CDN and Application Server and boost performance with its in-memory accelerator anywhere between 5x-10x over using Apache. It gives an additional check on Dos Attacks and can help to avoid Dog-pile effect when CDN cache gets invalidated.

Dispatcher Cache

AEM dispatcher module can be installed on the Apache HTTP server. It acts as a reverse proxy with a local disk cache. It supports event based cache eviction and authoring, or the publishing instances can send events of deleting and invalidating cache files on these servers.

Application Cache

AEM Application Cache is the last layer in the AEM Caching strategy. It's quite useful in the personalization services, where many components need a real-time business computation before getting rendered and cannot be cached in above three caching layers.

There are various options to facilitate in-memory Application caching using Redis, EhCache or MemCache. Although it's standard practice in AEM space, I haven’t seen any quick step documentation. Hence, I thought to put them in a blog using ehCache. It can be easily modified to work with other caching implementations.

1. Maven (pom.xml)

Make sure to use the updated version of the jars.

Also, append the Ehcache in the Embed-Dependency in case you are using maven-bundle-plugin configuration.

2. ehCache configuration (ehCache.xml)

3. Cache service implementation

4. Sample Service Component

5. Configure as JMX Bean

6. Cache Flush Configuration

  • Go to '/system/console/jmx'
  • A table with 4 columns will show up (Domain, Name, Type, Properties).
  • Look up for all entries with Domain: net.sf.ehcache and Type: cache


  • Click on the cache you want to clean, e.g. cacheTag
  • You will see a page similar to this one:


  • Click on "removeAll" and then on "Invoke".


Headless CMS.

Decoupled CMS aka “headless” has rising popularity in the CMS development world. It interacts with display/glass only through API, allows breakthrough user experiences. It gives developers the immense flexibility to innovate, and for the site owners to future-proof their builds by enabling them to refresh the design without touching the CMS. HeadLess CMS made its considerable mark in 2016 and looked like it's going to influence the norm in 2017 CMS development.

With this regard, Atish Narlawar talks about HeadLess CMS, its features and best practices to Tan Quach. Tan is Director of Engineering at @Huge and recently lead a development project built using Headless CMS. In this podcast, Tan shared valuable insights about HeadLess architecture, learnings, best practices, hosting options, development, fundamental challenges and overall experience.

They start the conversation by going through the evolution of CMS since late 1990’s, and how CMS has shaped from static site generator to more intuitive, omnichannel, the author focused serving the purpose of storing data, CRUD UI and data display. Most CMS got developed with complex monolithic systems and these monolithic applications results to a cumbersome development pain where display logic and backend sits next to each other, tightly integrated, and that's where the inception of HeadLess came into the picture.

Tan shares the common architecture patterns of HeadLess CMS based end to end project, and how it speeds up the development process, giving free hands to UI and UX teams for more alienated environments and freedom to use latest isomorphic libraries like Angular/React. He also explains about CMS administration, hosting and scalability. About the development practice, Tan explains how components built for publishing the site, can be re-used for the authoring view and the team can end up having a light weight middle layer between Frontend and CMS for managing third party integrations.

Finally, Tan shares his opinion for the teams aiming to introduce Headless CMS into their existing CMS ecosystem with some use cases.

Venue: Huge, Brooklyn, NY.

Host: Atish Narlawar

Contact: techpodcast@aol.com

Guest: Tan Quach@tantastik

AWS Reinvent 2016.

As of 2016, AWS has more than 70 services, estimated 2 Million servers and 31 percent cloud market share. The recent Yearly AWS Summit is one of a good place to feel the excitement with 32000 engineers gathering, collaborate with boot camps, and see how things are getting put in reality and what others think about Cloud in general.

Atish Narlawar talks about recent AWS Con 2016 to Stanley Tso, DevOps Engineer at @Huge.

They start the conversation with the most major topic of the year AWS Lambdas. Stanley talk about Serverless Architecture and architecture patterns emerged from it AWS Serverless API w/ API Gateway, Mobile, and Live Video Stream Processing. Cost is one of the biggest factors for switching from current cloud-based servers to AWS Lambda serverless architecture, and Stanley thinks these savings are going to be the game changer. In one survey it was noted on actual production servers savings goes up to 50-90% of total current cloud expenses.

Second, they talk about Alexa, and the concept of Voice user interfaces (VUIs). AWS hosted a workshop to develop Alexa skills using Raspberry PI. User Conversation is the design paradigm and interactions with the application services with little straightforward and natural way going to be a big thing in the upcoming year. Stanley thinks Amazon is pushing hard to make this transition sooner than later. He also speaks cover about AI, Machine learning presentations he attended, and how dev teams can use AWS AI services to build AI functionalities from scratch.

Third, they talk about "How DevOps Culture getting evolved" across worldwide since its inception in 2009. Stanley finds DevOps became the necessary for agility; moving towards the direction of "Infrastructure as a Code" and gets into the Continous Integration workflows along with application code.

Finally, Stanley talks about Security Automation, and how Automation in the security has taken overall security to the next level. He shares the "Psychology of Security Automation," its placement from day one in the project. And how tools from NetFlix like Lemur and Repoman automates SSL creations and User permissions and facilitates development team a pace of “Move and Fast Break the things, ” and fulfills testing and security compliance.

Venue: Huge, Brooklyn, NY.

Host: Atish Narlawar

Contact: techpodcast@aol.com

Guest: Stanley Tso @stso

WhatsApp replacing traditional CRM tools in Brazil.

WhatsApp Messenger is an instant messaging client for smartphones. It's intended to send text, audio, video messages to the contacts and family/friend groups. But surprisingly in Brazil, this direct messaging app turned to be one of the most popular platforms for digital marketing and eCommerce and virtually replacing traditional CRM platforms.

In this podcast, Atish Narlawar talks to Fernanda Saboia, Digital Strategist at Huge about her research in the Brazilian Digital Marketing space “The Rise of WhatsApp in Brazil Is About More than Just Messaging." Fernanda starts the conversation with the brief introduction to the research, and what made her work on this topic. She gives the figures stating how WhatsApp is so close to Brazilian and it's already trumped the other social media(Facebook/Twitter/Instagram) with user engagement, and the most significant user "Open and Read rate." She states, read rates for organic search is 7%, email is 22% while direct messaging has impressive 98%.

She introduces some real-time use cases, where business owners use WhatsApp to connect to the segmented audiences, and discuss the implementation, economics behind it with types of issues owners face and how they overcome with smaller adjustments.

Although WhatsApp hasn’t facilitated any services(aka. API) to leverage it as a CRM tool, she thinks it's definitely on their radar. With much discussion happening in the digital space about Conversational UI, AI bots, data-driven engagements, Fernanda believes WhatsApp will come up with a new groundbreaking product, to leverage the power of direct messaging and Facebook expertise and will compete with top CRM products in the market.

She observes the issues of privacy, spamming and other types of noise in this system and sees the adverse impact on the businesses in case they try to use it as a platform to push the content. She also finds a social aspect in this engagement, where business owners are trying to make social groups and feel their customers together to share some interests, and that's a good plus point.

Fernanda thinks this phenomenon will replicate in other continents like Asia and Europe and very optimistic about WhatsApp as a niche player to serve this market better.

Venue: Huge, Brooklyn, NY.

Host: Atish Narlawar

Contact: techpodcast@aol.com

Guest: Fernanda Saboia @saboia

Vue.js - The next great JS framework.

VueJs is one of the 2016 top front runner frameworks for developing and creating modern and sleek web interfaces. It is very modest javascript based library, that carries the best of Angular and React. It gets easily combined with other tools to convert into a fully functional framework.

Its design emphasized the "Ease of Use" and adopts the Model–view–viewmodel (MVVM) design paradigm which helps in the simplification of conception.

In this podcast, Atish Narlawar talks with Wes Hatch, Senior Web Engineer at Huge about VueJs. Wes goes through an overview of last decade spectrum of Javascript world and gives the background behind the inception of VueJs. He explains the high-level architecture and the types of problems Vue Js tries to solve for the various context.

Wes details about the Vue components, two-way data flow, and data binding model, state managements, Veux and the tools interacts as a part of the full blown ecosystem such as Vue Router, Chrome plugin, Vue-CLI, Vueify, Vue SSR.

In the end, He tries to compare Vue with React and Angular, presents the strengths Vue possess with its simplicity, lean learning curve, very active developer community and its influence and adoption in the current market. He discusses, how Alibaba is getting attracted to its development and the progress towards Vue-Native Weex for the native bridge similar to React-Native.

Wes also helps to understand, How Vue can be fit into Elm, Meteor ecosystem and can scale to production level grade app if needed.

Venue: Huge, Brooklyn, NY.

Host: Atish Narlawar

Contact: techpodcast@aol.com

Guest: Wes Hatch

What goes wrong with Agile? And how to fix it.

With the introduction of iterative development, frequent releases, a cross-discipline team, continuous integration, demos and retrospections, Agile development methodology has scored huge in the project execution as compared to traditional waterfall. It’s all going to be rainbows and sunshine, and everything will be smooth and perfect! Not surprised, many digital projects committed to Agile from the beginning.

But in reality, Agile is not a silver bullet. It can go wrong in various places. In this podcast, Atish Narlawar talks to Matt Toigo, Technical Architect at Huge, things that go out of the way in Agile and ways to address it.

Venue: Brooklyn, NY.

Host: Atish Narlawar

Guest: Matt Toigo @Toigo

Contact: techpodcast@aol.com

The Evolving Role of QA

In this episode, Tech Talk Podcast Host Atish Narlawar talks to Kate Falanga, an organizer of New York City Testers Meetup about "The Evolving Role of QA" in Software Engineering.

Kate gives an overview of how the role of QA has shaped in the software development since the era of GeoCities. With the aspects of processes, engineering practices, automation, and culture the role of QA has indeed gone far from waiting for testable code rather start to offer inputs at the beginning of requirement gathering.

Kate explains, the difference between QA Engineer and QA Analyst, and how both roles are very different and efficient in the software development. She insists although Automation is imperative, but it has to go through the lenses of usefulness, what make sense and what doesn't.

"The days of QA are getting numbered?" Recently one of the group from Yahoo got rid of QA Team altogether, stating testing is a part of culture, and, in fact, it's a shared responsibility. Kate answers QA is not dead, and it will never be dead. She think QA going through transformations, and the expectations have changed with this the role itself in validating requirements upfront, managing automation, release planning and recognizing what make sense and what doesn't. As next generation gadgets evolve with Augment & Virtual Reality, Driverless cars, Internet of Things the domain of QA is expanding fast and the ways to measure and manage quality is becoming quite challenging as certain rules need to get defined in these areas.

Podcast: Tech Time Podcast

Venue: Brooklyn, NY.

Host: Atish Narlawar

Guest: Kate Falanga

Meetup: NYC Tester

Blog: Evolving QA