I have been working for many projects and for backend tech i was used PHP for almost 10 years, and this last 3 years I also trying Node JS as one of my backend stack. And now i want to focus using Golang since Golang have a good track record and many startups are using this as their backend stack.
To help me going deeper in Golang, i decided to bought a Golang course and luckily my mentor is an engineer in one of unicorn in Indonesia. Personally, first time when i created a simple project using Golang i felt…
This is the last part of our journey to build simple microservice. Now we will give an authentication module to make our APIs secure.
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.
Here are some scenarios where JSON Web Tokens are useful:
An API gateway takes all API calls from clients, then routes them to the appropriate microservice with request routing, composition, and protocol translation. Typically it handles a request by invoking multiple microservices and aggregating the results, to determine the best path. It can translate between web protocols and web‑unfriendly protocols that are used internally.
In this article, our API gateway act is be a gateway from client to access our services. And…
In this article we are gonna build Nodejs project for API and next we will integrate services with a gateway, so that is microservice.
This project we will build user service that focus for user management such as login, register and detail user. Steps to build user service are:
- Create Express project
- Install Sequelize
- Create migration
- Create seeder with fake data
- Modify Config
- Modify model
- Create API
- Register to routes
- Run in Postman
For create a project, you need install Nodejs and Express in your PC. …
Hi guys, in this article we will build a simple project with Lumen to integrate with microservice. If you don’t know what Microservice is, you can read my article before.
Okay, let’s start with create a new project called property-api. After instalation finished, we next step is set up database stuff such as migrations, factory, seeders and models.
Create a new migration file to create residences table.
Second migration file to create houses table.
After you finish with your migration file, you can migrate with php artisan migrate command. Next continue to create factory file. …
Have you ever feel your application is hard to maintain? or hard to scale up? if so i suggest you to know what microservice is.
Based on microservice.io, microservice is an architectural style that structures an application as a collection of services that are:
- Highly maintainable and testable
- Loosely coupled
- Independently deployable
- Organized around business capabilities
- Owned by a small team
I can say microservice is a way to split up our modules into services that can scale up based on their focus. In example User Modules, when we migrate into microservice we need to…
After take a look at Svelte documentation i was found a brilliant way to using a promise. In this story i’m not talking about comparing performance, i just wanna talk about developer experience.
Developer Experience (DX) is the equivalent to User Experience (UX) when the user of the software or system is a developer.
Hi folks, in this story i just want to share my result after doing some experiments to using Laravel Socialite with several conditions. Basically we know authentication is a gate for our application to access some authorized feature inside. The manual authentication flow is we need email/username and password as credential, But time by time the flow was changes. Mostly we are using social media as part of our authentication module which we can get credential from them. Laravel Socialite come to be solution for this part and makes authentication with social media easier.
Remote Working adalah sesuatu yang tak asing diucapkan dikalangan orang-orang IT, entah dia programmer, devops, maupun designer. Remote Working adalah suatu kegiatan dimana orang-orang bekerja diluar kantor, namun komunikasi tetap berlangsung secara baik. Remote Working dapat dilakukan dimana saja, di rumah, coworking space, coffee shop, maupun di kereta atau pesawat.
Mungkin kita akan bertanya, kenapa sih ada Remote Working? Apa enak nya?
Beberapa keuntungan melakukan remote working menurut Remote Year adalah: