Microservices demo with docker, k8s (kubernetes) – Part1
StandardBeing a web developer, I always had confusion about microservices. What the hack microservice is? Is it some kind of fancy word for a concept we already know or is it entirely different alien concept?
Let’s understand it in plain english. Microservice is a concept of building application with more than one independent components called services.
For example, Facebook might have small services for features like profile data, feed data, advertisement, database, caching etc. it means, Facebook might have a separate independent application itself to deliver profile information whenever asked by anyone authorised entity (different service). This completely separate independent application has its own life cycle. We call it a service or micro service. and architecture having lots of such services communicating to each other to serve a set of user is called microservice architecture.
Video Blog – How to deploy code from bitbucket to Heroku
VideoSimple and easy to understand step by step talk to move our application code from bitbucket repo to heroku platform.
If you liked the video, please subscribe, comment and like to encourage us. http://l.sgoyal.net/bitbucket_heroku
How to always return a default value for an object property in javascript?
StandardHi Guys,
Do you have a need where you want to return something as a default value if your JS object don’t have that property?
Let’s come to our problem.
Lets take an object (kind of a key value configuration object) which is coming from server and we need to make some very important decision based on this data.
var electricalConfig = { isLightOn: true, isBoardSmart: false, noOfSwitch: 10, noOfSockets: 3, isConnected: true };
How to pull heroku logs into SumoLogic
Video
Here is simple and straight forward tutorial to pull your application log data from heroku platform to sumoLogic. If you liked the video, please subscribe, comment and like to encourage us. http://l.sgoyal.net/Sumo_Heroku
Video Blog – How house wiring works?
Video
Simple explanation on how the wiring is done in homes. As we want to control all appliances by individual switches, we need to arrange them in parallel connection. If you like the video, please like share and comment. http://l.sgoyal.net/House_Wiring
How to sync DB to salesforce if updates done by custom triggers using Heroku connect.
StandardHi Everybody,
Are you struggling with your DB updates to salesforce in case of triggers? If Yes, then you are on right place. I was in same situation today and wasted my hours looking for solution.
Problem: I use Heroku Connect to sync my data between salesforce and Postgres DB. I am updating my row by my own custom trigger and noticed that updates are not going back to salesforce.
Run a shell from Jenkins using sudo (Ubuntu)
StandardRunning shell commands which have sudo
might not worked as expected as jenkins doesn’t have access to read passwords from your linux box.
Are you familiar with below error?
sudo: no tty present and no askpass program specified
Web apps with no internet :) Beginner’s Guide for application cache
StandardHello Guys,
In this modern world, website are essentials. Have you wondered what if you have to read some article or use some web application while you are moving in train or bus and you have no internet? What if you provide this feature to your user? Answer is : This will be a great user experience to them.
What if your user doesn’t have to download your website content each time they visit? Don’t you think this experience will be much far faster than before? Again answer is YES in capital letters.
Let’s see approach.
spa-hero : Automating build for single page apps
Standardspa-hero
Create production/dev ready distribution build for javascript based single page applications. spa-hero uses gulp-useref to read out the html file and copy third party dependencies to a separate library folder.
Why I wrote this?
In this modern era of web, we extensivly use npm or bower to download dependencies to our project. These dependencies are right there in our project folder including lots of other files that came in with these packages. After looking at the size of my project one unavoidable question comes to us ,how to upload my project on server? Do I have to pick each and every javascript/css files from node_modules/bower_component folder and maintain a new folder which can be uploaded to server? If yes, then what happen when I added or removed some dependencies and I have to repeat the same cycle? Awww.