Posts

Learning of Docker concepts

Image
Docker is a container management service. The keywords of Docker are develop, ship and run anywhere. The whole idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere.Docker is container based technology and containers are just user space of the operating system.In Docker, the containers running share the host OS kernel. When we can use Docker? Docker is a basic tool, like git or java, that you should start incorporating into your daily development and ops practices. Use Docker as version control system for your entire app's operating system Use Docker when you want to distribute/collaborate on your app's operating system with a team Use Docker to run your code on your laptop in the same environment as you have on your server Use Docker whenever your app needs to go through multiple phases of development (dev/test/qa/prod) Features of Docker : Docker has the ability to reduce the size of deve...

Extraction of Metadata from an image file using Tika library in a Pega function

Image
I have learned a new java library called  “Tika” and this is an open source used to detect the language, MIME detection, Parsing of data, extraction of metadata. This library has 3 jars mainly used to support various functionalities from Tika mentioned below. For more details, you can google it. 1) org.apache.tika.jar 2) tika-core-1.6.jar 3) tika-parsers-1.6.jar Brief idea on Tika library and the features: Extract the metadata from an image file stored in the server path (ServiceExport) in my V84 PE: Wrote a simple java code in the Pega function to get the file name (Car.jpg) from an activity call to return the metadata using Tika library logic. The function returns a String of all the metadata associated to that image file. For now, I showed that metadata in a Show-Property method from the activity call. To perform this whole exercise, I have installed all the Tika jars in my PE before I start this exercise. Note...

Basic Pega NLP exercise for Twitter

Image
Here I am sharing a small, basic Natural Language Processing (NLP) exercise using Pega Infinity V84 to analyze the Twitter's tweet data and capture the sentiments into a Pega case. Before we start this exercise, we need to have twitter's API keys. For that, we need to login into the Twitter's developer site using twitter login credentials and create an app in it. https://developer.twitter.com/ Here is the details for your info and below are the simple steps to be followed to work on this exercise J 1) We need to build a Data Flow:  TwitterDataFlow to capture the Twitter configuration ( TwitterDS ) , Text analyzer process ( TweetsAnalyzer ) and a Pega case ( TwitterCase ) to be used to capture the data 2) Took the Pega NLP model:  TwitterSentimentModels and used in the Text analyzer step and created a sample NL file ( TwitterSentimentLexicon ) in csv format to recognize the words/sentiments 3) Create a sample model( TwitterSentimentModels ) by using t...

My GraphQL learning points

Image
GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data.GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015. https://graphql.org/ GraphQL is a query language for an API, and a server-side runtime for executing queries by using a type system we define for our data. GraphQL isn't tied to any specific database or storage engine and is ins tead backed by our existing code and data. Once a GraphQL service is running (typically at a URL on a web service), it can receive GraphQL queries to validate and execute. A received query is first checked to ensure it only refers to the types and fields defined, then runs the provided functions to produce a result. GraphQL Request: {   me {     name   } } GraphQL Response: {   "me": {     "name": "Ravi Kumar Pisupati"   } } REST Vs GraphQL: 1) In REST, the endpoint you call is the identi...

Send SMS from Pega V83 using Twilio API intgeration

Image
The prerequisite for this exercise is like we need to have Twilio acct and the connected phone number to that acct for sending the SMA to the recipient mobile phone. For now, it is working in USA and I tried with India number and is not working and I am not sure on this. To run this exercise, we need to install a Ruleset: PegaFW-Twilio:08-03 and this is not as a part of product feature. For now, I just hardcoded the endpoint URL, request parameters etc to make sure that I am able to send SMS from Pega activity rule. We can connect the dots if we plan to work on the actual implementation. Screenshots for the implementation of this small PoC work: This is the necessary setup to call the API and other rules to work on this integration.        Logic to build the API call from a standalone activity to run and send the SMS     References: 1)  http://community1.pega.com/             ...

Simplified Kafka streaming to run from Windows command prompt

Image
After doing little research from my end, I did simplify the Kafka streaming process to work on Windows command prompt easily. The prerequisite for this simple exercise is like we need Apache Kafka software and a Windows 10 machine with full file/folder access permissions to run the Kafka commands through out the exercise. We can extend this work to next level by adding the security using SSL and we need the jks files to Kafka streaming process by using a properties file (eg:client-ssl.properties) while using producer/consumer commands successfully. Of course, these are not covered in this post but usually that is how most of the organizations used to follow this approach while working on Kafka streaming. Below are the simple steps to follow on this simple exercise: 1) Download the Apache Kafka =>  https://www.apache.org/dyn/closer.cgi?path=/kafka/2.4.0/kafka_2.12-2.4.0.tgz 2) Extract the Kafka into C:\Kafka and the structure would be like this way 3) U...

My AWS Solutions Architect Associate exam preparation journey

Image
AWS SAA exam is one of the hardest/toughest exams which I had faced after my earlier certifications - TOGAF and Pega CLSA. On the paper, everyone think that AWS is just a cloud environment and it provides all the necessary resources while working on any Java/Pega application running. But when I started learning the topics from the exam point of view, I noticed that it is not that easy to setup the cloud env in reality. Need to understand the basics of cloud first and then explore more on each and every area while setting up the cloud env. There are 20 plus services provided in AWS but some of the areas are little complex to understand and visualize the situation (eg:VPC,security,storage etc). I don't think there is a practical exposure or the practical exp required while preparing the exam. But it is good to have some basic idea of what a cloud is and how it works. To be honest, I also don't have practical experience until I started working on the course content but I did atten...