Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

How we built Twitter Lite

Categories

Tags frontend-and-mobile backend-development product-and-design

Nicolas Gallagher short blog post describing Twitter team journey to successful build of Twitter Lite - new Progressive Web App powering fast and responsive mobile.twitter.com.

Twitter Lite is a client-side JavaScript application and a small, simple Node.js server. Once loaded in the browser, the app requests data directly from the Twitter API. The client-side JavaScript application is developed, built, and tested with many open source libraries including React, Redux, Normalizr, Globalize, Babel, Webpack, Jest, WebdriverIO, and Yarn.

Nicolas gives quick overview of:

  • Overall architecture
  • Designing for performance
  • Availability a network resiliency
  • Progressive loading
  • Rendering
  • Data usage

Give the blog a go if you want to learn more about real life Progressive Web App development.

[Read More]

Advanced Elasticsearch Methods with Node.js Elasticsearch Client

Categories

Tags business-and-emerging-tech

Kirill Goltsman cool tutorial tutorial, in which he’s going to dive deeper into elasticsearch.js describing more advanced methods and concepts like scrolling, aggregations, and analyzers.

He then goes and provides information about scrolling - e.g. if you need to return a large number of results from a single request. Then, you would probably need a cursor implemented in the Elasticsearch as a Scroll API.

Aggregations are useful whenever you want to build analytic and quantitative information over a set of documents. Metrics aggregations, bucketing aggregations, matrix aggregations and pipeline aggregations are all mentioned.

Good tutorial with example code included. Elasticsearch.js is a very powerful tool that provides one-to-one mapping with Elasticsearch REST API which means it covers the vast majority of methods used in the native Elasticsearch.

[Read More]

Getting Started With Serverless PHP

Categories

Tags backend-development architecture-and-apis cloud-and-infrastructure

Rob Alen short article in which he takes a look at how to build a simple serverless PHP function. He is interested in Apache OpenWhisk and this article focuses on PHP runtime with IBM Bluemix.

OpenWhisk is a serverless environment, you can run it yourself - but most users do not run their own copy and instead use a commercial provider (e.g. IBM’s Bluemix). IBM has added support for PHP to the Bluemix “IBM Cloud Functions” platform, so now we can use PHP to develop serverless applications and deploy them into the wild!

Author then quickly describes how to set up account with Bluemix and how to install wsk (CLI tool). He then provide examples how to write functions (actions) for PHP. The runtime uses PHP version 7.1 - so we get all the new PHP features.

Any OpenWhisk action can be configured as a “Web Action” which provides a public URL without having to worry about configuring API Gateways and what not. In article you also find how to use parameters and metadata. Good read and great news for fans of PHP serverless.

[Read More]

5 things about programming I learned with Go

Categories

Tags software-engineering backend-development

Michał Konarski interesting and engaging post about his journey with golang programming language. Author explains why even if you do not plan to use it in the long run, Go is worth the effort.

Author likes the fact that there is an ongoing discussion whether Go is or is not an object-oriented language and that it is possible to have both dynamic-like syntax and static safety. Sometimes inheritance seems like a perfect answer for increasing demands, but with larger projects it can become overwhelming and maintenance becomes hard. With Go you can avoid inheritance and prefer composition instead.

Channels and goroutines are powerful way to solve problems involving concurrency. Go scheduler is smart enough to automatically utilize all CPU cores. Goroutines are small and lightweight, therefore you can easily create many of them and get advanced parallelism for free.

With Go you do not communicate by sharing memory, share memory by communicating. Instead of using locks to control access to a shared resource, they can simply use channels to pass around its pointer. Author also points out the fact that Go is different, because it doesn’t have the concept of exceptions by design.

Good read with many code examples and explanations.

[Read More]

Local microservices development with Edward

Categories

Tags architecture-and-apis devops-and-ci-cd

Francesco Renzi neat tutorial exploring simple and easy local development on kubernetes with edward - command line tool for managing microservices. Requires golang 1.6+.

Author was excited about Edward, which claims to be “A tool for managing local microservice instances”. Edward needs an edward.json configuration file, which is composed of three main sections: imports, groups and services.

It requires:

  • Go
  • Docker
  • ICBM
  • Procfiles
  • Other Edward config files

Services are manageable together through the app group, and we can, for instance, restart them at once… Edward will even automatically restart services when source files are changed. Very efficient, see for yourselves.

[Read More]

Apache Kafka exactly-once processing explained

Categories

Tags data-and-analytics

Adam Warski blog post explaining real time processing with Apache Kafka and what its’ new major feature - exactly-once semantics - really means. This announcement caused a stir in the community, with some claiming that exactly-once is not mathematically possible.

Author explains and analyses how you can construct an exactly-once pipeline in Kafka, with an emphasis on where the new features come into play, what kind of guarantees you get, and more importantly, what guarantees you don’t get.

It is possible to create a pipeline where, at each stage, the result of processing of each message will be observed exactly-once, as far as Kafka is concerned. Author then focuses on:

  • Producer and its’ crucial feature is idempotency
  • Pipeline stages and how atomically write data to multiple topics and partitions
  • Consumer and how it can be transactional
  • Side effects

Worth your time!

[Read More]

Comparing Docker vs. Kubernetes vs. Apache Mesos

Categories

Tags devops-and-ci-cd data-and-analytics

Amr Abdelrazik published blog post in which he compares 3 popular open source projects - Docker vs. Kubernetes vs. Apache Mesos and summarizes why what you think you know about them is probably wrong.

Instead of comparing the overlapping features of these fast-evolving technologies, author revisits each project’s original mission, architectures, and how they can complement and interact with each other.

Quite good comparison with bit more information about Apache Mesos. Author points out that container orchestration is only one example of a workload that can run on Mesos’ modular architecture, and it’s done using a specialized orchestration “framework” built on top of Mesos called Marathon. But it can also run:

  • Monolithic and legacy apps
  • Data services and analytics
  • Containers - microservices architecture

Whatever you choose, you’ll be embracing a set of tools that makes more efficient use of server resources, simplifies application portability, and increases developer agility. You really can’t go wrong.

[Read More]

The Observer Pattern In Javascript as Implemented By Redux

Categories

Tags architecture-and-apis frontend-and-mobile

James Buczkowski post on hot topic of Observer pattern in JavaScript. The observer pattern, also referred to as the publish/subscribe pattern, is a design pattern where an object (called the subject or observable), will maintain a list of “dependents” called observers. Upon a state change, this subject will notify any of the observers automatically.

There are usually 3 methods involved. One method to register an observer. One to remove an observer. And finally, one that will notify the list of subscribers of the change.

If you work in the world of React, you have probably dealt with Redux to manage the state of your application.

Author then discuss polling and push as 2 main means for class when it needs to keep track of something, or better yet, know when something has happened.

Video (~50 minutes long) is also attached with good summary of the Observer pattern together with the link to a book. Plus example code. Good read.

[Read More]

Automating LetsEncrypt Certificates With Ansible for AWS Instances

Categories

Tags devops-and-ci-cd cloud-and-infrastructure security-and-privacy

Alagesan Palani tutorial explaining how to make your AWS instance safer by automatically generating LetsEncrypt certificates. Conveniently.

LetsEncrypt is a free certificate provider and myriads of tools and technologies available to automate its certificate generation.

In his solution, he uses HA proxy. You learn how to create Ansible inventory for a proxy server. All the tasks described assumed to have appropriate aws_access_key, aws_secret_key and region setup properly. For proving that you own domain you will be using a dns-01-based challenge, as this is pretty straightforward with AWS Route53, and the dehydrated client can automate that.

He then describes and provides playbook example code for:

  • Installing LetsEncrypt/Dehydrated client
  • Configuration of the client
  • How to generate certificates and
  • How to apply certs to HAProxy

Straight to the point tutorial. Nice.

[Read More]

Forget coding, here is the skill you need most when you start your career

Categories

Tags software-engineering leadership-and-career

Lars Schmidt article on developing soft skills as main driver for propelling your career. It used to be that the only way to climb a career ladder was to pick up more skills. Today, many of those ladders have fallen and shattered.

In order to move up, over, side to side, and double back when you need to, all while making your way upward, the trait you need most is adaptability, not this or that tech skill. He also advice to focus on:

  • Your network is a job skill
  • Hit up alumni - tap your university resources and LinkedIn
  • Rethink Twitter
  • Map it all out - find a person for every passion

And never stop giving. More than any technical skill, one of the best ways to advance your career from the very beginning is to start thinking of networking as part of your day job–even before you land one. Worth a read!

[Read More]