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 to containerize a local DynamoDb

Categories

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

This is going to be a very quick tutorial. I am going to show you how you can use Docker to spin up a DynamoDb. By Phillip Ninan.

This can very useful for prototyping an application where you need to persist some data. Since DynamoDb is a NoSQL database it gives developers a lot of flexibility. Also, if you do plan on using DynamoDb in production this is an easy way to get started without needing to pay.

The tutorial will walk you through:

  • Install locally
  • Create Dockerfile
  • Create docker-compose.yml
  • Start Your Database!
version: '3.7'

services:
  dev:
    container_name: dynamodb
    image: amazon/dynamodb-local
    ports:
      - "8000:8000"
    volumes:
      - dynamodata:/home/dynamodblocal
    command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ."
volumes:
  dynamodata: {}

You can use this to persist data for your latest application or just spin it up to toy around with it. Working code available on author’s Github. Very handful!

[Read More]

DynamoDB checklist

Categories

Tags architecture-and-apis data-and-analytics miscellaneous cloud-and-infrastructure

DynamoDB is the leading serverless database in the AWS suite of offerings. It provides an easy to configure, high-performance, NoSQL database with low operational overhead and almost endless scalability. By SenseDeep.

DynamoDB appeals to developers requiring a simple serverless database and those requiring the utmost in scalability. However, DynamoDB can be used effectively for almost any OLTP application regardless of scale.

In single-table designs, one database table serves the entire application and holds multiple different application entities. This design pattern offers greater performance by reducing the number of requests required to retrieve information and lowers operational overhead. It also greatly simplifies the changing and evolving of your DynamoDB designs by uncoupling the entity key fields and attributes from the physical table structure.

The article then covers checklists for:

  • Why Single Table?
  • Preparation
  • Data modeling
  • Indexes
  • Data organization
  • Libraries and tooling
  • Coding
  • Performance
  • Infrastructure
  • Migrations
  • Billing
  • Cost control

DynamoDB is a great NoSQL database that comes with a steep learning curve. Folks migrating from SQL often have a hard time adjusting to the NoSQL paradigm and especially to DynamoDB which offers exceptional scalability but with a fairly low-level API. Great one!

[Read More]

How to choose a cloud serverless platform

Categories

Tags architecture-and-apis cloud-and-infrastructure leadership-and-career

From AWS Lambda and Azure Functions to Knative and OpenFaaS, we have at least a dozen functions-as-a-service platforms to choose from. Here’s how to navigate the options. By Martin Heller.

Enter serverless computing. Serverless computing is an execution model for the cloud in which a cloud provider dynamically allocates—and then charges the user for—only the compute resources and storage needed to execute a particular piece of code.

“Serverless” is of course a misnomer. The model does use servers, although the user doesn’t have to manage them. The container or other resource that runs the serverless code is typically running in a cloud, but may also run at an edge point of presence. The article will guide you through following:

  • Serverless computing pitfalls
  • AWS Lambda and related services
  • Microsoft Azure Functions
  • IBM Cloud Functions
  • Oracle Cloud Functions and the Fn Project
  • Cloudflare Workers
  • Serverless Framework
  • Apache OpenWhisk
  • Fission

Function as a service (FaaS) describes many serverless architectures. In FaaS, the user writes the code for a function, and the infrastructure takes care of providing the runtime environment, loading and running the code, and controlling the runtime lifecycle. A FaaS module can integrate with webhooks, HTTP requests, streams, storage buckets, databases, and other building blocks to create a serverless application. Great read!

[Read More]

How code quality is measured: Android code review at Yalantis

Categories

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

Programmers are the authors of great builds just as writers are the authors of bestselling novels. But behind the scenes, there are always many people who contribute to the process. The best code – like the best products of any type – is the result of collaboration. All programmers, both senior-level software engineers and beginners, occasionally need somebody else to take a fresh look at their code and find issues in it. This is how code quality is ensured at Yalantis. By Kate Abrosimova and Olexander Taran.

In this article, authors show you why and how they do code reviews and give some useful tips on performing a code review:

  • Goals and benefits of code reviews
  • Important aspects of code analysis
    • Documentation clarity
    • Code styling
    • Architectural patterns
    • Simplicity
    • Error handling
    • Test coverage
    • Performance monitoring
    • Security
  • Android code review tools

Code review is a good development practice, but it requires time and effort from the reviewer. And as an app becomes more complex and more developers start working on the project, more resources are required for code review. SonarQube is a powerful code analyzer that works with 27 programming languages, works seamlessly with build frameworks, and integrates with popular CI engines like Jenkins TeamCity. They use SonarQube for regular code checks in most of our projects. Good read!

[Read More]

Browser attack allows tracking users online with JavaScript disabled

Categories

Tags security-and-privacy frontend-and-mobile miscellaneous

Researchers have discovered a new side-channel that they say can be reliably exploited to leak information from web browsers that could then be leveraged to track users even when JavaScript is completely disabled. By Ravie Lakshmanan.

“This is a side-channel attack which doesn’t require any JavaScript to run,” the researchers said. “This means script blockers cannot stop it. The attacks work even if you strip out all of the fun parts of the web browsing experience. This makes it very difficult to prevent without modifying deep parts of the operating system.”

In avoiding JavaScript, the side-channel attacks are also architecturally agnostic, resulting in microarchitectural website fingerprinting attacks that work across hardware platforms, including Intel Core, AMD Ryzen, Samsung Exynos 2100, and Apple M1 CPUs — making it the first known side-channel attack on the iPhone maker’s new ARM-based chipsets.

Side-channel attacks typically rely on indirect data such as timing, sound, power consumption, electromagnetic emissions, vibrations, and cache behavior in an effort to infer secret data on a system. Specifically, microarchitectural side-channels exploit the shared use of a processor’s components across code executing in different protection domains to leak secret information like cryptographic keys. Interesting!

[Read More]

Application request tracing with Traefik and Jaeger on Kubernetes

Categories

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

This is the third in a series of articles on site reliability engineering (SRE) and how Traefik can help supply the monitoring and visibility that are necessary to maintain application health. By Neil McAllister.

Debugging anomalies, bottlenecks, and performance issues is a challenge in distributed architectures, such as microservices. Each user request typically involves the collaboration of many services to deliver the intended outcome. Because traditional monitoring methods like application logs and metrics tend to target monolithic applications, they can fail to capture the full performance trail for every request.

The article main content can be split into:

  • Prerequisites
  • Set up tracing
  • Minimal deployment
  • Install and configure Traefik
  • Deploy Hot R.O.D.
  • Application traces

This post has presented a very simple demonstration of how to integrate Traefik with Jaeger. There is much more to explore with Jaeger, and similar integrations can be done with other tracing systems, such as Zipkin and Datadog. Whichever one you choose, Traefik makes it easy to follow the progress of each request and gain insights into application flow. You will also get links to previous articles in the series and links to further reading. Good read!

[Read More]

How to Create REST API with Azure Functions and Serverless Framework

Categories

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

With the recent updates to the serverless-azure-functions plugin, it is now easier than ever to create, deploy and maintain a real-world REST API running on Azure Functions. This post will walk you through the first few steps of doing that. By Tanner Barlow.

The article then explains the following:

  • Create your local Azure Function project
  • Add your own handlers
  • Add Code
  • Current Folder structure
  • Test your API Locally
  • Deploy
  • Authentication

To see the full end-to-end example used to create this demo, check out this GitHub repo. You will get structured commits to follow the steps described in this post. Nice one!

[Read More]

Online payments using the new Web Payment APIs

Categories

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

The Payment Request API and the Payment Handler API are a set of new W3C web standard being introduced to make payments easier on a website. It is aimed at standardizing and providing a consistent user experience for payments for both end-users and for merchants. By Deepu K Sasidharan, Developer Advocate, Adyen.

In this article authors look at what exactly the APIs are, what are its advantages and how we can use them in a web application:

  • What is Payment Request API
  • Advantages of Payment
  • Example application
  • What is Payment Handler API

While the Web Payment APIs and not mature enough to replace the client-side components provided by PSPs, I do see a bright future once the APIs are implemented by all major browsers, especially the Payment Handler APIs. You will also get code examples and links to required reading. Nice one!

[Read More]

How to build a serverless real-time credit card fraud detection solution

Categories

Tags architecture-and-apis cloud-and-infrastructure security-and-privacy

As businesses continue to shift toward online credit card payments, there is a rising need to have an effective fraud detection solution capable of real-time, actionable alerts. By Polong Lin and Pavan Kattamuri.

Because all of the Google Cloud products used in this solution are serverless and fully managed, this means you won’t need to spend time setting up and maintaining infrastructure, enabling you to focus on getting the solution up and running in an hour.

This blog post will be a technical dive into how the solution works:

  • Preparing the data on BigQuery
  • Building the fraud detection model using BigQuery ML
  • Hosting the BigQuery ML model on AI Platform to make online predictions on streaming data using Dataflow
  • Setting up alert-based fraud notifications using Pub/Sub
  • Creating operational dashboards for business stakeholders and the technical team using Data Studio

Whether you are part of the fraud protection team in a financial institution or an online retailer trying to reduce fraudulent losses, real time ML solutions are most impactful when they serve the ultimate business goals and efficiently adapt to the changing environment. With data stored on BigQuery, it becomes easy to train machine learning models using BigQuery ML without needing to set up or procure infrastructure, saving time, money and complexity when productionizing the design pattern. Excellent read!

[Read More]

Kubernetes – Bridging the gap between 5G and intelligent edge computing

Categories

Tags leadership-and-career devops-and-ci-cd cloud-and-infrastructure

An article by Ashish Sharma. In the era of digital transformation, the 5G network is a leap forward. But frankly, the tall promises of the 5G network are cornering the edge computing technology to democratize data at a granular level.

What oil is to the automobile industry, the cloud is to Information Technology (IT) industry. Cloud revolutionized the tech space by making data available at your fingertips. Amazon’s Elastic Compute Cloud (EC2) planted the seed of the cloud somewhere in the early 2000s. Google Cloud and Microsoft Azure followed this. However, the real growth of cloud technology skyrocketed only after 2010-2012.

In this blog, you will read about:

  • A decade defined by the cloud
  • The legend of cloud-native Containers
  • The rise of Container Network Functions (CNFs)
  • Edge computing must reinvent the wheel
  • Kubernetes – powering 5G at the edge
  • KubeEdge – giving an edge to Kubernetes

Gartner quotes: Around 10 percent of enterprise-generated data is created and processed outside a traditional centralized data center or cloud. By 2025, this figure will reach 75 percent.

The advent of cloud-native is a hallmark of evolutionary development in the cloud ecosystem. The fundamental nature of the architecture of cloud-native is the abstraction of multiple layers of the infrastructure. Good read!

[Read More]