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 ]

AWS Lambda: how to share code between functions in a monorepo

Categories

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

Yan Cui put together this tutorial about sharing business logic between services in a Node.js monorepo.

His advise can be summarized like this:

  • Encapsulate the shared business logic into modules, and put them in a separate folder
  • In the Lambda handler functions, reference the shared modules using relative paths
  • Use webpack to resolve and bundle them into the deployment package
  • Deploy every service on every commit

Loads of code examples together with deployment script included. And To see how everything fits together, check out this demo repo. It has CI/CD set up already through drone.io. Nice one!

[Read More]

Pivoting to digital maturity

Categories

Tags leadership-and-career miscellaneous

An article about seven capabilities central to digital transformation for enterprise. By Ragu Gurumurthy and David Schatsky for Deloitte Insights.

Why do digital transformation efforts sometimes fail to deliver? Applying seven “digital pivots” across the enterprise can help organizations reap the benefits of increasing digital maturity.

Without the right leadership, digital transformation efforts tend not to fulfill their potential. Digital transformation requires executive sponsorship and engagement to both convey the message that digital transformation is a priority and facilitate collaboration throughout the organization.

In search of the factors that lead to digital transformation success, authors surveyed 1,200 senior executives knowledgeable about their organizations’ digital transformation efforts.

The article then explains:

  • Executing digital transformation
  • Seven digital pivots
  • Increasing the impact of digital transformation
  • Prioritizing digital transformation efforts
  • Beyond the digital pivots
  • The benefits: Digital maturity drives financial impact

… and more. Excellent, detailed report!

[Read More]

Concurrent programming in Python is not what you think it is

Categories

Tags software-engineering product-and-design backend-development frontend-and-mobile devops-and-ci-cd

In this article, author will first walk you through the distinction between concurrent programming and parallel execution, discuss about Python built-ins concurrent programming mechanisms and the pitfalls of multi-threading in Python. By Melvin Koh.

Concurrent programming is not equivalent to parallel execution, despite the fact that these two terms are often being used interchangeably.

Concurrency is a property which more than one operation can be run simultaneously but it doesn’t mean it will be. (Imagine if your processor is single-threaded)

Parallel is a property which operations are actually being run simultaneously. It is usually determined by the hardware constraints.

The article content is split into few sections:

  • Understanding Concurrent Programming vs Parallel Execution
  • Python Built-ins
  • What is Global Interpreter Lock (GIL)?
  • How to bypass GIL?
  • Multiprocessing – Process-based Parallelism

The constraint of GIL was something that caught author in the very beginning of time as a Python developer. Good read!

[Read More]

Modernize existing .NET applications

Categories

Tags software-engineering product-and-design miscellaneous

An article by Derya Sezen about the way to modernize existing .NET applications. Together with the Cloud movement, its functions and benefits, software practices and trends have been converging towards creating or migrating the applications towards a cloud-native compliant architecture.

The article discusses few options:

  • Microservices
  • Polyglot architecture
  • Containers
  • Serverless

The article offers a multi-dimensional model for the .NET modernization. There are 3 main dimensions in this model:

  • .NET Core Transition
  • Splitting the Monolith
  • Cloud-Native

… and much more. The last major programming language which is not natively supported on Linux based Kubernetes, .NET versions prior v4.x, definitely needs to be migrated. Good guide!

[Read More]

Enabling enterprise governance in Azure

Categories

Tags software-engineering cloud-and-infrastructure miscellaneous

At Microsoft Core Services and Engineering (CSEO), Microsoft used Azure governance to create a solution that enables enterprise-scale governance and compliance enforcement for our entire Azure environment. Article by Microsoft.

At Azure they use Management Groups to create a logical hierarchy within the Azure governance environment. Azure Management groups can be nested, so they use the nesting behavior to replicate the relevant business and engineering structure for the groups and organizations that support each subscription.

The article goes on and covers:

  • Adopting a cloud-centric architecture at Microsoft
  • Adopting Azure governance
  • Building an effective framework in Azure governance
  • Best practices

Azure governance has enabled CSEO to create an Azure-native, enterprise-scale governance solution that will provide decentralized management of our Azure environment and its governance needs. With Azure governance, our environment is more compliant with our organizational policies and, as a result, more efficient, robust, and effective.

The cloud governance hierarchy and few more schemas included. Nice one!

[Read More]

Robotic process automation (RPA) vs. AI, explained

Categories

Tags business-and-emerging-tech product-and-design miscellaneous

An article by Kevin Casey explaining what is the difference between Robotic Process Automation (RPA) and AI. The expanding universe of artificial intelligence includes many terms and technologies.

While just about everyone agrees that machine learning is an AI discipline, that same consensus doesn’t exist with RPA and AI.

One reason for this is lack of consensus is that RPA technologies and use cases to this point haven’t been all that “intelligent.” RPA can do a great job of handling repetitive, rules-based tasks that would previously have required human effort, but it doesn’t learn as it goes like, say, a deep neural network. If something changes in the automated task -– a field in a web form moves, for example –- the RPA bot typically won’t be able to figure that out on its own.

The article then describes:

  • What is the difference between AI and RPA?
  • How RPA and AI work together
  • What is intelligent automation?
  • RPA and AI use cases
  • RPA vs. automation: Plenty of room for humans

The pairing of RPA and AI may bring significant moves forward toward some of the loftier predictions about automation and the future of work.

[Read More]

Common systems programming optimizations & tricks

Categories

Tags software-engineering cloud-and-infrastructure devops-and-ci-cd

An article from the pen of Paul Cavallaro about system programming. It is an overview of some common optimization techniques and neat tricks for doing “systems programming” -– whatever that means today.

It provides some tools for improving performance in your own applications, or at least make it easier to understand why performance sensitive code is doing what it’s doing.

The article discusses in depth:

  • Cache lines & false sharing
  • The magic power of 2: division is slowaloo
  • Repurposing top bits
  • Lock striping

False sharing problem has been written about fairly extensively, but the basic idea is that physical memory on a machine isn’t infinitely granular, i.e. you can’t just read a byte.1 Instead, when you want to read a single byte of memory, the processor will pull in and cache not just that byte, but the surrounding data as well, on the assumption that it will likely be used too. This unit of data that gets read and cached is called a “cache line”, and is essentially the smallest piece of memory that can be accessed.

While this is nowhere near an exhaustive list of the most common systems programming tricks, hopefully it whets your appetite to learn more.

All of the examples we went over over are also on github at paulcavallaro/systems-programming. Written in C++. Good read!

[Read More]

Why gRPC?

Categories

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

Short explanation focusing on gRPC and it’s implementation in Akka (Scala). gRPC is a transport mechanism for request / response and (non-persistent) streaming use cases. Akka gRPC is Open Source and available under the Apache 2 License.

It is a schema-first RPC framework, where your protocol is declared in a protobuf service descriptor, and requests and responses will be streamed over an HTTP/2 connection.

It has several advantages, including Schema-first design favors well-defined and decoupled service interfaces over brittle ad-hoc solutions; Protobuf-based wire protocol is efficient, well-known, and allows compatible schema evolution; Based on HTTP/2 which allows multiplexing several data streams over a single connection.

It is great for:

  • Connections between internal services
  • Connecting to external services that expose a gRPC API (even ones written in other languages)
  • Serving data to web or mobile front-ends

To get more information how it compares to REST, SOAP, Message Bus and Akka Remoting follow the link to original source. Easy!

[Read More]

What is Open Banking and PSD2?

Categories

Tags leadership-and-career cloud-and-infrastructure business-and-emerging-tech software-engineering

Open Banking (aka PSD2) forces the biggest UK banks to open up their precious data, which could mean big changes for the way we use money. By Rowland Manthorpe. This is older article, but explains topic well.

Banking in the UK has some big problems. Some of them: “People are paying too much for their overdrafts; money is sat in current accounts not earning interest; there’s not enough switching.”

Not much changes in banking in the UK. Sure, there are occasional new ideas -– ATMs, apps, contactless payments –- but decade after decade the fundamentals remain the same.

So what does Open Banking -– or PSD2 (Second Payment Services Directive), as it’s sometimes known -– mean in everyday terms?

The article then explains:

  • What is Open Banking exactly?
  • Why was Open Banking introduced?
    • Money management
    • Lending
    • Payments
  • Is it safe?

Like the internet itself, open banking benefits aren’t immediately obvious. The key thing to remember: anyone using an Open Banking service will not need to share their banking login or password with anyone but the bank. Good read!

[Read More]

How to implement worker threads in Node.js

Categories

Tags backend-development frontend-and-mobile software-engineering

An article by Ganeshmani P about implementation of worker threads in Node.js. After the release of Node.js V10.5.0, Worker Threads are available in the Node.js module.

Javascript is a single threaded programming language. The single thread is one thread which does all the operations of your code. JavaScript engine will run as a single thread and all the operating system IO will happen in parallel. When it returns the results to JavaScript code, it will be operated in a single thread.

Under some circumstances a single thread doesn’t perform well. One of them is CPU Intensive Task. CPU Intensive tasks are the one that blocks the main thread.

The article then discusses solutions:

  • Child process
  • Worker threads

You will get example of implementation of both with explanation of advantages and disadvantages. The JavaScript code provided in the article. Nice!

[Read More]