I put together a quick introduction to my Java colleagues into Golang to make some appetite to try it out. This presentation is the first in the series of Microservice development with Golang and focusing on the language elements sprinkled with example code links. It tries to compare them with Java to help the easier understanding, why Go has a potential in enterprise environment even in private/hybrid or private cloud scenarios with low resource usage and efficient concurrency.
Monday, August 8, 2016
Golang basics for Java developers
Tuesday, May 3, 2016
Microservices: just a trend or real evolution?
Today
I had a discussion with my colleague about the necessary coding style
changes in microservice development. In my opinion we should revise
our practices for simplifications, because we socialized on code
reusability in monoliths and these new kids on the block are playing
differently. At the end of the discussion he asked a question from
me:
“Is the microservice architecture is a trend or evolution?
Microservice
benefits
Lot of pages listing why do we need microservices
and writing long-long lists about their magical nature, but I think
it has two main reasons: scalability and development time.
In some blog post the list has more items like:
resilience(no, just restarts faster...)- easy to enhance (I said the same with development time)
ease of deployment (Bahhh. Releasing and integrating 50-100 microservices couldn't be easier then releasing a single monolith, but different...)Single Responsibility(yeah, serve the business logic, provide proper logging and incident handling, integrate with other services, deliver KPI metrics, being resilient, etc...– hahaha....)Low impact on other services(due the the SRP in the previous point, I have doubts about how low is the impact when others are depending on it...)- etc...
Labels:
coding style,
microservices,
moore's law,
scalability
Wednesday, September 16, 2015
Changes of Dockery 0.3.0
Huh! Finally Dockery version 0.3.0 is ready to get released and I already published the hosted version. The Chrome update scheduled to this week. It took some time release a new version, because of my holidays and flu, but the real reason was the scope of the release was too big.
Because of the efficient mixture of my ego and terrible estimation skills :)
Let's see what's changed and why:
- search for container diff - the simple paging is not so efficient, I had to go through long list of changes sometimes to find what I'm looking for.
- commit container as image - initial version, I don't know this feature how often used. Personally I prefer creating Dockerfiles. It will be improved with some extra features (Dockerfile statement filtering, etc.)
- extending saved configuration data - from now some extra stuff will be saved too. I'd like to implement to reenter to the last state of the app at the next run.
- bootstrapping page - a nice eye-candy to hide angular placeholders during the app loading :)
- login into the docker hub - to push docker image (will be implemented in 0.3.1) back to a repo we need to login
- cosmetics - removed $promise from json data, added some details how to setup CORS for docker daemon
!!4! Announcing the hosted app!!44!
This is the very point of this release. In the past I invested reasonable efforts] to make the chrome packaged app more user friendly, but I had hard times to find the documentation for anything what I planned to add, to enable or reimplement because of the security settings.
Finally I decided to switch to the hosted app model to provide more user friendly UI interaction and faster development of new features.
In case of high demand to the dedicated version, I surely consider to re-release it (the customer is the king), but at the moment I'm believing in the hosted version is much better for the users.
Link: dockery
In case of high demand to the dedicated version, I surely consider to re-release it (the customer is the king), but at the moment I'm believing in the hosted version is much better for the users.
Link: dockery
Monday, August 17, 2015
Using Docker for microservice development
Intro
Before we begin, I'd like to clarify: this is not a Yet Another Basic Docker Tutorial. If you need one, just go to the Docker site or use Google as a rich resource of tutorial links. I used the official site to learn it, but these days a lot of talented colleagues made great tutorials. Also you could get a good overview about what is Docker.
The purpose of this post to make a short introduction about Docker as application platform and microservice runtime environment as a starter of the upcoming blog posts.
The microservice architecture is coming closer every day to us and getting recognized not just by some hot startups and innovative companies, but the mature organizations too. We are still learning how to use their benefits as scalability, simpler maintenance and structure. We are also experiencing the increased costs of microservices as paradigm shift from SOA, orchestration, duplication, increased skill demand on several areas and so on.
Thursday, August 13, 2015
Hosted version of Dockery is available at http://dockery.io/dockery
I totally forgot to release Dockery as hosted web application for simpler access, but from now these days are over. Dockery is available on the dockery.io domain under the link: http://dockery.io/dockery/. Bookmark it quickly and manage your Docker hosts easily with the app.
I believe this is the easiest way to access recent version of Dockery from anywhere, but don't forget: this version is always in beta state :)
I believe this is the easiest way to access recent version of Dockery from anywhere, but don't forget: this version is always in beta state :)
Wednesday, August 12, 2015
Dockery added to the official Docker documentation as client library
I'm proudly announcing: my simple Docker management application Dockery is added to the official Docker documentation as remote api client library. It started as a pet project to learn some Angular basics as a notorious backend developer, but somehow it turned to a fun and my colleague Jens Wlodarczyk convinced me to take it more seriously and popped up the idea to create a Chrome app version too. That wasn't easy for a novice javascript learner, but now it used by other guys around the Earth and I'm getting feedback about what to improve/fix. This is my very first travel into the open source community and I think this is a great source of motivation and gives me extra energy to work on it. The blog of course will focus on different things, but this is a great achievment for me and I'm moved a bit now. Sniffsniffsniff... :)
Monday, August 3, 2015
Pull request build automation for Stash with Jenkins
Intro
Moving toward the frequent releasing is a challenging goal for all organizations. It needs well crafted delivery pipelines, devops mindset to take care about the whole software delivery lifecycle and also needs efficient tooling and methodology from the beginning. The starting point is the definition of a supportive workflow for your SCM. We are using Atlassian Stash as Git server, therefore I looked after for Git based workflows. Click on the links for the detailed description of these workflows, the Atlassian guys made a great job to explain them.
Labels:
build automation,
continuous delivery,
delivery pipeline,
forking workflow,
git,
tl;dr,
tutorial,
version control
Sunday, July 26, 2015
Jenkins DSL scripting - Part 4 - adding our own library to the DSL plugin /TL;DR/
Intro
This is actually the last part of my series about Jenkins DSL scripting. I already discussed the basics with environment setup, job creation and linking, view definition and the importance of the easily reproducible build pipelines with non-pet Jenkins servers. The following part I explained some more advanced topics, like the interaction with the environment, credentials and the customization options with configure block
In this part I'm talking about how to extend the plugin's functionality with your own commands and implement complex logic behind it.
I'd like to say a REALLY big thank you to my colleague Thomas Schneider for his approval to reuse his code snippets and findings in this blogpost. Respect!
I'd like to say a REALLY big thank you to my colleague Thomas Schneider for his approval to reuse his code snippets and findings in this blogpost. Respect!
Labels:
continuous delivery,
delivery pipeline,
jenkins,
scripting Jenkins DSL plugin,
tl;dr,
tutorial
Monday, July 20, 2015
Jenkins DSL scripting - Part 3 - intermediate /TL;DR/
This is the third article in my series about the journey of Jenkins DSL scripting.
In the first part we learned the basics of the DSL plugin features with detailed explanation of the building blocks to enable you to create simple pipelines.
The second part described the side effects of dynamic pipeline creation, the role of seed/boostrap job and finally demonstrated and described a simple pipeline project for an application. They were the basic part of DSL scripting and focuses on the pipeline as a whole.
Now we are entering to the intermediate level and focusing on particular problems of the pipeline creation like passing values via environment variables, using credentials to access protected resources, extending the DSL plugin functionality with the configure block to use non-covered plugin functions and so on.
In the first part we learned the basics of the DSL plugin features with detailed explanation of the building blocks to enable you to create simple pipelines.
The second part described the side effects of dynamic pipeline creation, the role of seed/boostrap job and finally demonstrated and described a simple pipeline project for an application. They were the basic part of DSL scripting and focuses on the pipeline as a whole.
Now we are entering to the intermediate level and focusing on particular problems of the pipeline creation like passing values via environment variables, using credentials to access protected resources, extending the DSL plugin functionality with the configure block to use non-covered plugin functions and so on.
Monday, July 13, 2015
Jenkins DSL scripting - Part 2 - environment setup /TL;DR/
In my first article I wrote about the basics of the Jenkins DSL scripting. I explained my motivation to switch from static Jenkins configuration to a more dynamic one and tried to show the benefits via small examples.
In this part I'm talking about some interesting side effects of dynamic pipeline generation, the role of seed jobs, my development setup and finally I define a basic pipeline as a blueprint for other's project. I hope this entry will be shorter then the first one :)
Friday, June 19, 2015
Jenkins DSL scripting - Part 1 - basics /TL;DR/
As the Continuous Delivery is spreading, more and more CI servers are working on daily builds, tests and releases. With the growth of the companies' codebase we are repeating almost the same steps with slight changes to implement CI/CD coverage for the new modules and projects, but the maintenance or update of these steps is getting harder. In a monolithic environment the growth is not so remarkable, but as we are moving toward the microservice paradigm with containerization, the maintenance effort of these configurations could jump quickly.
The majority of the servers I saw was run the same sequence of checkout, build, package, deploy, tests steps and finally marked artifact as releasable or released it into the production environment.
Also all of these servers were guarded by intensively and only some chosen ones were able to change configs or could consider to upgrade to a more recent version with shaky hands and unpredictable compatibility issues. We could agree on the high importance of these servers and their unique role, but how could we mitigate the risk and dependency on these servers? How could we repeat pipeline assembling steps in a reliable way and make predictable the outcome?
Purpose of this document
This is the first part of the series of tutorials about Jenkins scripting to achieve a fully automated, decentralized and replaceable delivery pipeline architecture with better flexibility than the monolithic, centralized Jenkins setup. In the series I’m talking about the scripting basics (here), some intermediate steps (xml configuration, modularization, common tasks, DslFactory, etc.) and the extension of the plugin function with own library routines. In this part I’m explaining only the basics of job and view creation, the syntax and a basic pipeline generation with some recommendations.
Labels:
continuous delivery,
delivery pipeline,
jenkins,
scripting Jenkins DSL plugin,
tl;dr,
tutorial
Dockery Light released as Chrome app
I recently released the beta version of my Docker management application Dockery Light (I'm still working on the name/branding hehe). The app is quite beta, but able to help you as developer to manage docker hosts via the remote api.
All feedbacks, bug reports, critics, enhancement ideas are warmly welcome :)
You can add to your Chrome browser via this link.
Feel free to fork it and send pull requests: Github repository
Wednesday, June 10, 2015
Thursday, August 14, 2014
Why Codecademy is cool
I recently finished the Python course on Codecademy and I'm thinking on how to say thank you for it to them. Not just because the site is great and I already found the next course (as a back-end developer I need to practice front-end things at home to not be a specialist of one thing) to continue, but by their approach to letting me to learn python on very entertaining and easy to understand way. I see how much effort invested into the site just to provide free material and how professionally designed the page and the learning flow. The Pythong material is well structured and introducing step-by-step from the basics to the real pythonic things. And you get a chance to write a game during the course!
What I liked in the Python lessons as a notorious Java developer?- The for-each loops. Especially when I can add an enumeration to track the index. In java if you need you had to avoid for-each and use regular index based for.
- Else case at the end of the loops. That's a brilliant idea to separate the implementation for the successfully finished looping or the cancelled ones.
- The in keyword. Python has a more generic approach to check the existance of an item in a collection/dictionary/array/etc..
- List comprehensions. I love to populate data in a readable, one-liner format
I think I have a basic knowledge about some of the language elements (first steps :) ) and I need to move forward the more complex topics. Not only on language level, but I'd like to see Python as platform to deliver a complete solution to a problem. I already bookmarked some Youtube videos about the advanced topics, but I hope I can find some blogs or tutorials about how to start a Python project and end up with a successful delivery.
Wednesday, August 13, 2014
Beware of outdated books
I'm really amazed when I found on Amazon a very old book from Martin Fowler: Patterns of Enterprise Application Architecture. I have this book and I rechecked my assumptions and found this book is badly outdated. I mean most of their suggestions and patterns are already implemented in several frameworks (spring, spring-mvc, hibernate/jpa, etc..), the current architectural solutions are stepped over on it, but the price is still high. Maybe they keeping them for the collectors or multi-millionare developer veterans :)
Currently the IT sector is growing quickly and lot of newbies are arriving to train themself to the next Peter Norton (Is anyone knowing him? :) ), Larry Page (better known) or Guido van Rossum. Thanks to the internet, voluntarism and the open source community we can learn almost everything for free, but some of us need to buy some paper books to erect a statue of our learning efforts.
I don't really know what should Amazon do with these books, but it alerts me to read all reviews carefully even if it written by trendy/famous authors to avoid traps like this.
Sunday, July 6, 2014
My impressions about 97 things that every programmers should know book
Yesterday I finished 97 things that every programmers should know book in the bathtub (hehe :) ). This is somehow a bit sad thing, because I really enjoyed to read ideas from experienced programmers and the thinking on how add these things to my daily routine.
IMHO this is not a one time read only book and I surely get it from the bookshelf in the future often just to pick a random chapter, because you can't memorize all useful thoughts after the first time. If I have to pick my current (surely changes in the future) top 5 chapters I would list these:
Chapter 82. Test While You Sleep (and over Weekends)
Since long time I felt my PC in the office is wasting the time and money when I'm away. I mean the developer machines are strong enough to help the daily automation with their extra capacity during the absence of their owners. When do my holiday leave, my machine can be switched off to do nothing, but why I can't offer it as a free resource like the Amazons on-demand instances to help my colleagues work with it's extra capacity? My dream is a so automated environment when we can handle ALL available machines in pools and offer them several roles based on their current status.
Friday, July 4, 2014
Algorithmic challenges - if it works thats not enough.
I recently started to solve problems on CodeEval thanks to my colleague's recommendation and suddenly recognized the enjoyment of problem solving. After the boring daily routine it's a really unique and refreshing feeling when your brain starts to warm-up again.
After solving few easy problems I was very proud, because it worked! But I very quickly recognized a serious issue with my code: it just works. I had an input that I transformed to the output and submitted to the site as quickly as possible.
The code was ugly. Really. Like my first Borland Pascal solutions in the high school and I felt some shame for it, so I said to myself: calm down cowboy and think on it what do you want from this? I was already seduced by the world of algorithmic challenges (I don't no why not started it earlier...), but I had no other goals with my code than to fulfill the challenge and I almost missed a good opportunity to learn something.
Thursday, April 10, 2014
Performance of a mocking framework
Few days ago came in my mind the idea to measure the performance of the mocking framework used here. I was curious how it affects our unit tests' running time and how can we squeeze out some extra performance from the build agents. I created a basic measurement code with low amount of iteration steps (to imitate a medium sized codebase) and recognized we are in the world of nanoseconds. From this point all the measurement is just about some competition between the frameworks and no reason to switch between them just to make the test run faster.
I tested only three common cases:
- Mock creation
- Mock interaction
- Mock verification
Test environment: Core i5 750@2.67GHz
Here are the results
Conclusion:
Easymock dramatically overperforms Mockito even it needs a bit more coding in some cases, but the difference is not changing the game. You can use any of them without worrying for their performance
The code also available on GitHub
Subscribe to:
Posts (Atom)







