Friday, 30 December 2016

Brain Storm to sustain load by Software Systems


I am always been bothered by one of the Questions. How would one scale is j2ee application to cater to more and more load/user requests.
I suppose these kind of thoughts would pave paths to Design patterns.

In this context let me tell you some thing about different scaling techniques.

The Basic one: 


  • Use the Firewall, Loadbalancer and couple of servers and manage to run your applications. Handle the static content to web-servers or Loadbalancers. DB servers, Internal cache mechanism
  • If situation worsens then run profilers, change GC algorithms.
  • still not in good form? resort to next  technique

Vertical Scaling:

  • Add power to your machines in terms of CPU, RAM. This would incur more cost to the business. 
  • if situation worsens then implement above steps and also think on mechanism to cache static content by using more load balancers , install squids with white and black lists etc.,
  • DB servers scale up add power to them, so the full table scan is possible seamlessly with proper page size available for the DB query results. I am not convinced by the question people ask me ""Why can't we use Horizontal scaling for DB servers?". I am not sure, how can one scale the MYSql horizontally as these traditional DBs are not designed for that. Apache Casandra is kind of DB which perimits this horizontal scaling distrubutedly.
  • DB partition. I will focus on DB partition in next blog. We can discuss on Row level , Vertical partitioning and Column level , Horizontal DB partition.
  • still not in good form? resort to next technique

Horizontal scaling:

  • Add more Machines/Servers to process requests.
  • DB partition into READ/ WRITE SANs.
  • Optimize code. 
  • Partition you server prototype to different geo graphics. 
  • Use User clusters to deploy the features of the app relevant only to those users
  • Manage a Master DB Table to route which user belongs to which cluster.
  • Still not in good form? resort to CLOUD the future. 

Thursday, 29 December 2016

Swipe Konnect Plus (5", 2GB, 16GB, Black)


The Swipe Konnect Plus 16 GB is a premium phone and offers unparalleled performance. This smartphone is equipped with dual sim facility and has a RAM of 2 GB. This smartphone runs on the Android Lollipop v5.1 and this combined with the 1.2 GHz quad-core processor makes it super-fast. It features a 13 MP rear camera and a 5MP front camera. With dimensions of 14.4x 7.3x.98 cm, the phone is easy to handle and is lightweight at 156 grams. The high end configuration of the Swipe Konnect Plus makes it ideal for users and is available on Amazon at a very affordable price.



Coolpad Note 5 (Space Grey, 4GB)



  • 13MP primary camera with auto focus and 8MP front facing camera with flash
  • 13.97 centimeters (5.5-inch) FHD IPS capacitive touchscreen with 1920 x 1080 pixels resolution and 401 ppi pixel density
  • Android 6.0 + CoolUI operating system with 1.5 GHz, Qualcomm Snapdragon 617 MSM8952 octa-core, 4GB RAM, 32GB internal memory expandable up to 64GB and dual SIM (nano+nano (hybrid)) dual-standby (4G+4G) with VoLTE
  • 4010 mAh battery providing talk time of 8 hours and stand by time of 200 hours
  • 1 year manufacturer warranty for device and 6 months manufacturer warranty for in-box accessories including batteries from the date of purchase




Best Mobile 

TCL 560 (Dark Grey, VoLTE)


  • 8MP primary camera with LED flash, HDR, face tracking, video zoom and 5MP front facing camera wide-viewing angle (84.4 degree) with front flash
  • 13.97 centimeters (5.5-inch) IPS FL capacitive touchscreen with 1280 x 720 pixels resolution and 267 ppi pixel density
  • Android v6 Marshmallow operating system with 1.1GHz quad core processor, 2GB RAM, 16GB internal memory expandable up to 32GB and dual SIM (micro+micro) dual-standby (4G+4G)
  • 2500mAH lithium-ion battery providing talk-time of 18 hours on 2G, 15 hours on 3G networks and standby time of 525 hours on 2G, 500 hours on 3G, 480 hours on 4G networks
  • 1 year manufacturer warranty for device and 6 months manufacturer warranty for in-box accessories including batteries from the date of purchase



Vehicle Tracking/Parking System 

As a Micro Service


When I come to my Office daily, I see one or more security guards been assigned the work of tracking the Regd number of incoming Vehicle & outgoing Vehicle traffic. One cannot locate an available parking slot in side the cellar. Some times I end up in been loitering around for time to trace a parking slot.

Problem:
Loose time wandering for slot to park vehicle

How to improve : Can automate this current manual process of tracking vehicle system by security guards, Issue an bar code for each vehicle to automatically track the incoming and outgoing traffic by issuing available park space.

Benefits: 
Enhanced and seamless Vehicle tracking for incoming and outgoing vehicle. Makes the tough job of security guard from paper work. Avoids the paper wastage, Log book maintenance 

Enhanced security : we can get data between given dates to track if any missing cases Improved utilization of parking space We can market this component to other business entities to maintain their parking.

Will post the full solutioning in next blog..

Micro Service to improve Software process 

App Synchronizer 

Cross App Synchronize

Problem : 
Order Management Systems needs to update the downstream systems like Order Management Consoles to let the end users/Customers know up-to-date Status information on their Orders. When the downstream systems are not available due to various issues such as Infrastructure issues, it introduces out of sync problems. This problem mostly arises when Business acquires new business as part of this acquisition governance factor of redundant services components plays a major role. This kind of service can be used interns of Z - axis scaling technique. For example Inventory of different business systems can be made to be in sync keeping the Order systems , fulfillment systems in tact.

Improvement:
Build a component or utility that can be used to identify the failures during the synchronization process and automatically perform the data synchronization between the systems/applications after the downstream steams are back up. Any opensource DB can be used as well to maintain the metadata.

Advantages: 
Error free automated data sync against heterogeneous cross applications. Enhanced Processing Speed due to asynchronous connectivity

This Service can be deployed in any Cloud compliant environment like SFDC, AWS etc.,
Technologies can be used: Java/j2ee technology stack, Tomcat server, ActiveMq, MSSQL OR we can use Cloud bases SAAS SFDC to host this API.
I will post more on Solutioning this in my next Blog...

Wednesday, 28 December 2016

Lord Balaji Darshan in one day



Friends,

I know most of us love to have Lord Balaji Darshan more frequently. 


We all travel to Tirupathi from different places, might from far away places too. But some of us wants to go and come back in the same day. I want to give some tips for them who travel from Hyderabad. So that they can have pleasant Balaji Darshan.

We need to be bit cautious when we plan a day travel to Tirupathi. Well inadvance have the Dates of Journey, check if on those dates do we have the special Darshan tickets also available. To check the availability of the Special Darshan tickets log in to https://ttdsevaonline.com/#/login. Make sure to book for the slot in time frame 11:00 AM to 12:00 PM

Make sure that you plan to go on normal week days when we do not have that huge rush on 7 hills. These days one can expect the Special Darshan can happen in at most 3 to 4 hours. 

Narayanadri is the best train I can say, as it would drop us at tirupathi in the early hours around 7 AM. After having alighted the train in the morning you can go directly to Tirumala, but I prefer one should have freshen up himself before he abodes Tirumala. I would suggest to reach Srinivasam Guest house near by Station, its one and half kilo meter far away. Can engage an auto for Rs 50/-

At Srinivasam, getting accommodation for single person is not permitted. So we should have some one accompanied. But singles do not worry, inside Srinivasam we can get lot of free lockers and free bath rooms with hot water. Keep your luggage in lockers (to get a locker we need to provide ID proof). So go and fresh up there. 

Come out of the Srinivasam , quite opposite you can find the stop for free buses as well as APSRTC buses to Tirumala. Get on tothe bus with your luggage. Once the bus reaches Alipiri. We need to go for a Security check with our luggage. After that come back and sit in the Bus.

Enjoy the Scenic around the hills and you will be there on the top in 50 mins. Alight the bus, here our actual activity starts to Lord Darshan. The time should be 8:30 AM.


  • Head to wards the Yatri Sadan from Bus stop, it is very near by the Bus stop. Go there and get one Locker to keep your luggage first. There we can have two to three large locker halls. To get the locker same ID proof is needed. Locker will be given for 24 hrs.
  • Secure your luggage there. Next head to have you head tonsured. In Yatri Sadan we have free kalayakatta to offer our hair with Bath rooms. By this all activity the time should be 10:00 AM.
  • After having the head tonsured and bath, need to ware traditional dress only, Gents please wear dhothi and kurhta/cotton shirt; Ladies please wear Saree. Do not forget to carry original ID proof/Aadhar and special Darshan Tickets. One should be present before 30 mins of slot time. Do not carry Cell phones.
  • Then head towards Aadhi Varaha Narasimha Temple near Pushkarini. It is the convention to have the Aadhi Varaha swamys darshan first. By this activity the time should be 10:45 AM.
  • Next, head to Sakala Darshan complex. you can use the free bus service from Varaha Narasimha swamy temple to reach to Special entry counter.
  • Have some milk/coffee/Tea at the counter and submit your tickets and proofs. Maintain silence and head for Lord Darshan. Time should be 11:15 AM. 
  • Ok, cheers! Had a good, pleasant Darshan of Balaji great!. Now go and collect you laadus from the Prasadam complex . That should be near to the Temple. After that go to break Coconut . That place is quiet opposite to Balaji temple. Time should be 3:00 PM
  • Go to the Vengamamba anna daana satram have free bhojanam. Satram is walk able from the Temple of Lord Balaji, can ask any one there. Time should be 4:15 PM.
  • Now board any free bus and come back to Yatri Sadan. and collect your luggage. Come to Bus station next to it. Board the bus, if its APSRTC bus, it will drop you near Tirupathi station.