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 ]

Tips and tricks for developing a serverless cloud app

Categories

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

An article by Miles Buckley and with contribution by Sebastian Hesse about how to pursue serverless cloud app development. As organizations search for flexible and scalable data solutions, the pull for going serverless has never been stronger.

There are two ways you can develop serverless functions: locally or directly in the cloud. One key drawback we saw with the cloud execution is that debugging your code can be more challenging.

It is important to consider few things:

  • You must have a test environment that closely resembles your production
  • Local code updates are generally faster
  • Debugging your code along the way
  • Keep track of all your (Lambda) functions

Authors suggest keeping your functions simple and separate your concerns. Consider focusing on just one task your function will perform and pour your energy into delivering that functionality very well.

The article then recommend these best practices:

  • Keep it simple – limit the scope of your functions
  • Key in on communication – communication between your functions becomes very important
  • Ensure all aspects are scalable
  • Make sure 15 minutes is enough time to execute your app
  • Understand data limits

Nice and concise reading. The link to video presentation also available. Well done!

[Read More]

Great engineer needs the liberal arts

Categories

Tags miscellaneous data-and-analytics leadership-and-career software-engineering

Thomas Betts wrote for infoq.com about how liberal arts eductaion can provide new insights and perspectives that shine a light on technical tasks for any software developer. E.g. empathy helps you know your audience and create great software that delights your customers.

The education of most software engineers involves a heavy focus on STEM subjects: science, technology, engineering, and math.

However, much of what helps you become a great software engineer, and create outstanding software that people want to use, comes from outside the world of STEM.

Liberal arts education teaches how to use a broad knowledge base to analyze new and unfamiliar topics. Computer science is the study of algorithms, data structures, and operating systems. Programming is the practical implementation of computer science.

The article then explains:

  • What does “liberal arts” mean?
  • The importance of language
  • Know your audience
  • How every problem is a communication problem
  • How to model software communication after human communication
  • The importance of empathy
  • Critical thinking and problem solving
  • Lifelong learning

Great engineers realize that continuing to learn about non-technical aspects of software development improves their ability to work with a team and deliver better solutions. Nice one!

[Read More]

How to create histogram in Rlang

Categories

Tags data-and-analytics miscellaneous leadership-and-career

In this article the author will show you how to create histogram in R using ggplot2 package. Written by Data Sharkie. When we get a new dataset for our analysis or research, often we would like to learn about the frequency of occurrence distribution of the variable of interest.

A histogram is a plot with rectangles, height of which represents the frequency or “count” of the occurrence and width is equal to the grouping interval.

Histogram

Source: @datasharkie https://datasharkie.com/how-to-create-histogram-in-r/

The article is straightforward and covers:

  • Installing ggplot2 package
  • Loading sample dataset: trees
  • Creating a histogram in R

Charts and code is also included and explained. Short and sweet!

[Read More]

Tracking and reminders in AWS Amplify

Categories

Tags cloud-and-infrastructure architecture-and-apis product-and-design frontend-and-mobile

A guide by Jan Hesters how to track which features your users use in AWS Amplify and send them emails, push-notifications and SMS based on their behavior.

In this tutorial, you are going to learn how you can use the analytics category from AWS Amplify together with AWS Pinpoint to understand and engage your users. With AWS Amplify, you can easily track your users’ activity. And AWS Pinpoint allows you to send them engaging, customized and relevant messages. With relevant what author means is being right about the conversation you have, the audience you target and the place and time you choose to interact.

The guide explains:

  • Set up – React Router and AWS amplify
  • Initializing Amplify
  • Auth
  • Routing
  • Tracking – including Custom Evenets, Auto Tracking, Endpoints
  • Set up email reminders

Nice and detailed guide which will get you running your infrastructure with AWS Amplify in less than 30 minutes. Well done!

[Read More]

Scaling up an iOS app using modules

Categories

Tags frontend-and-mobile product-and-design

Nebil Kriedi wrote this article about scaling up the development of the Depop iOS application, both in terms of number of features developed in parallel, and in terms of number of contributors to the code base.

Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Author explains how in this context it is critical to modularise a large and old codebase, into small, independent and testable components. Along the way we will also share some of the solutions we adopted to deal with dependency management and to optimise build performance in a continuous delivery setup.

The article is split into:

  • Codebase overview
  • Initial approach to defining the clear boundaries between the main macro-components
  • Solution
  • Explaining what is a module?
  • Assessing the effort

Good read for anybody working in a fast-growing company! Sample project repository also provided.

[Read More]

Phoenix LiveView: leave regular web development behind

Categories

Tags frontend-and-mobile backend-development

Introduction into Phoenix LiveView by Jean DerGurahian. A frequent goal of web development is to create meaningful, satisfying user experiences through robust web applications. LiveView-powered applications are stateful on the server with bidirectional communication via WebSockets, offering a vastly simplified programming model compared to JavaScript alternatives.

The best part: Using Phoenix LiveView means programmers no longer having to write JavaScript and manage complex client-side interaction development to build web apps. For organizations looking for fast, high-performing software to power their websites, Phoenix LiveView provides rich, real-time user experiences while reducing costly development processes.

Because this stateful cycle is built on Elixir, a platform made for stateful systems that can handle millions of connections, updates can be pushed to the client in a cost-effective manner. This process can’t be done over stateless HTTP.

Very interesting read together with link to Chris McCord Keynote on youtube!

[Read More]

How to manage access control lists with Ansible

Categories

Tags devops-and-ci-cd frontend-and-mobile

Taz Brown (from Red Hat) wrote this post in which she explains how automating ACL management with Ansible’s ACL module is a smart way to strengthen your security strategy.

ACLs allow regular users to share their files and directories selectively with other users and groups. With ACLs, a user can grant others the ability to read, write, and execute files and directories without leaving those filesystem elements open.

Ansible can play nicely with ACLs, just as it does with a lot of features, utilities, APIs, etc. Ansible has an out-of-the-box ACL module that allows you to create playbooks/roles around granting a user access to a file, removing ACLs for users on a specific file, setting default ACLs for users on files, or obtaining ACLs on particular files.

You will also get an example Ansible playbook which can scale across your infrastructure to increase speed, improve efficiency, and reduce the time it takes to achieve your goals. Applying ACLs to files and users is a practice you should take seriously in your role as a DevOps engineer. Great!

[Read More]

API design: Why you should use links, not keys, to represent relationships in APIs

Categories

Tags architecture-and-apis frontend-and-mobile cloud-and-infrastructure software-engineering backend-development

An article by Martin Nally from Google about how expressing relationships is very important in APIs. The most common way that API developers express relationships is to expose database keys, or proxies for them, in the fields of the entities they expose.

However, at least for web APIs, that approach has several disadvantages over the alternative: the web link. Standardized by the Internet Engineering Task Force (IETF), you can think of a web link as a way of representing relationships on the web.

Links can appear in API resources too, and using them instead of foreign keys significantly reduces the amount of information that has to be separately documented by the API provider and learned by the user.

A link is an element in one web resource that includes a reference to another resource along with the name of the relationship between the two resources.

Web link example

Source: https://cloud.google.com

The article then explains:

  • Representing relationships using foreign keys
  • Representing relationships using links
  • Caveats with relationships using links
  • What’s the best way to write links in JSON?
  • What’s the difference between an attribute and a relationship?

Replacing all the database keys with links is a fairly simple change and it significantly simplifies the API and reduces the coupling of the client and the server. The server is now free to change the format of new URLs at any time without affecting clients (of course, the server must continue to honor all previously-issued URLs).

Excellent!

[Read More]

The potential for using Service Mesh for Event-Driven Messaging

Categories

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

Kasun Indrasiri (director of Integration Architecture at WSO2 and is an author/evangelist on microservices architecture and enterprise-integration architecture) provides article full of insights into potential new use for Service Mesh. The current popular implementations of service meshes (Istio, Linkerd, Consul Connect, etc.) only cater to the request-response style synchronous communication between microservices.

There are two main architectural patterns for implementing messaging support within a service mesh; the protocol proxy sidecar, which is a proxy for all the inbound and outbound events from the consumer and producer; and the HTTP bridge sidecar which translates or transforms event-driven communication protocol to HTTP or similar protocol.

Regardless of the bridging pattern that is used, the sidecar can facilitate the implementation (and correction abstraction) of cross-functional features such as observability, throttling, tracing etc.

The article discusses in detail:

  • Implementing event-driven messaging
  • Protocol-proxy sidecar
  • HTTP-bridge sidecar
  • Key capabilities of an event-driven service mesh

Excellent read, please follow link to the original article!

[Read More]

Difference between Stack and Queue in Data Structure

Categories

Tags software-engineering leadership-and-career

Quick summary from Aniruddha Chaudhari about Stack and Queue. With stack and queue data structures, it is very easy to solve even complex programming questions.

For the sake of simplicity, author define stack and queue as the collections of the objects, just like an array in the data structure.

What is a Stack?

The stack is a data structure where the user can add a data object any time. But, the user can only remove the data which is added at last. The stack follows LIFO (Last In First Out) mechanism.

What is a Queue?

The queue is a data structure where the user can add data object at any time. But the user can only remove the data which is added first. Unlike stack, the queue follows FIFO (First In First Out) mechanism.

The article then also explains:

  • When to Use Stack vs Queue?
  • Difference Between Stack and Queue by their operations
  • Push Operation on Stack
  • POP Operation on Stack
  • Enqueue operation on Queue
  • Dequeue operation on Queue
  • Memory Usage Comparison of Stack and Queue

… and more. Stack and queue have similarity as they stores the collection of data objects. Good read!

[Read More]