In order to use AWS cloud resources from application we have to setup connection with specific account. AWS SDK is supported by dozens of programming languages and JAVA is one of them. In order to setup connection the concept of credential provider chain must be understood. There are multiple ways of using AWS Credential through the application (Example: Through environment variables, java system properties, web identity token, etc). AWS SDK allows us to use one or multiple of these ways together in order to setup connection. It means we can build a chain out of these possible ways and the chain works as a fallback. Means if the first way of connection fails, SDK will try the second way, and then third and so on.
How to GitOps with Github Actions
The original definition of GitOps was taken from gitops.tech and it says that GitOps is a way of implementing Continuous Deployment for cloud native applications. It usually focused on developers who can easily setup CI/CD environments by using familiar tools such as Git and CD tools. There are common patterns for CI/CD setup, but each time when we setup new environment with CI/CD some customization is required. It is like, every our new project somehow similar with our previous project but not the same. We can say same thing about CI/CD process. In this article I would like to describe a GitOps setup which is used to deploy application to the kubernetes.
AWS DNA Program in Seoul (Korea)
AWS DNA(Digitial Native Architects) program has been developed and introduced by DNB team of AWS Korea. They have selected 20 people from various IT companies who actively uses AWS Cloud. Shortly the goal of this program is to teach us how to use AWS as a pro. Five teams were formed out of 20 people, at the end of the course teams supposed to come up with they Case Study and Build-up a prototype that has a stable business model and could become a real startup in a future.
Gson-Fire and Gson usage
Gson Fire project contains very usefull additions to the Gson project, in order to keep your code organized and clean. Gson Fire is something that better to have, otherwise you have to implement JsonSerializer and JsonDeserializer interfaces and register TypeAdapter classes to run some additional behaviors in serialization and desirialization processes.
Rich versus Anemic Domain Model
Rich domain model, much of the domain logic implemented within the entities at the core of the application. The entities provide methods to change state and only allow changes that are valid according to the business rules. Many of the business rules are located in the entities instead of the use case implementation.
Teemo Attacking (LeetCode)
In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo’s attacking ascending time series towards Ashe and the poisoning time duration per Teemo’s attacking, you need to output the total time that Ashe is in poisoned condition.
Subarray Product Less Than K (LeetCode)
Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all the elements in the subarray is less than k.
Number Of Recent Calls (LeetCode)
You have a RecentCounter class which counts the number of recent requests within a certain time frame.
Largest Number (LeetCode)
Given a list of non-negative integers nums, arrange them such that they form the largest number.
Evaluate Division (LeetCode)
You are given an array of variable pairs equations
and an array of real numbers values
, where equations[i] = [Ai, Bi]
and values[i]
represent the equation Ai / Bi = values[i]
. Each Ai
or Bi
is a string that represents a single variable.