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 ]

Streaming microservices with ZIO and Kafka

Categories

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

The design and implementation of distributed and highly concurrent applications is something we do every day at Scalac. The adoption of distributed systems is a trend that is currently growing, and it’s not going to stop. Apart from Kubernetes, Apache Kafka is surely the main reason for this. By Aleksandar Skrbic.

Ingestion of large-scale data, resilience to data loss and corruption, replication, and easily achievable parallelism via consumer groups are some of the main reasons why Kafka is one of the most important tools for building distributed systems.

Functional streams, as an abstraction, are commonly used to elegantly solve problems in the area of concurrency and the processing of unbounded data, making resource safety and CPU utilization the priority.

The article then describes:

  • Scala, ZIO and finally Apache Kafka
  • ZIO Streams
  • ZIO Kafka
  • Microservices with ZIO and Kafka

Article makes a good job of explaining what ZIO is and how to use it in combination with ZIO Streams to write purely functional event-driven microservices. I hope that some major advantages of functional streaming libraries presented in this article are enough for you to be able to start introducing them into your projects. Nice one!

[Read More]

A different way to work with external SVG

Categories

Tags frontend-and-mobile software-engineering

SVGs are awesome: they are small, look sharp on any scale, and can be customized without creating a separate file. However, there is something I feel is missing in web standards today: a way to include them as an external file that also retains the format’s customization powers. By Shubham Jain.

For instance, let’s say you want to use your website’s logo stored as web-logo.svg. You can do:

<img src="/images/logo.svg" />

That’s fine if your logo is going to look the same everywhere. But in many cases, you have 2-3 variations of the same logo.

To address this, author has created a library called svg-loader. Simply put, it fetches the SVG files via XHR and loads them as inline elements, allowing you to customize the properties like fill and stroke, just like inline SVGs.

This approach may feel unorthodox because it introduces a JavaScript dependency and there are already multiple ways to use SVGs, including inline and from external sources. But there’s a good case for using SVGs this way. Let’s examine them by answering the common questions. Follow the link for the full break down. Nice one!

[Read More]

5 feedback loops that avoid software architecture chaos

Categories

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

Product development can be chaotic these days. Planning for these five challenges helps avoid them. By Jim Tyrrell (Red Hat).

According to PWC, one-third of users are unlikely to use any product from a company after one bad experience. That shift in bug tolerance by the developer and change in expectations from the user can lead to chaos.

This challenge of delivering technology-centered compelling experiences that do not require costly support while balancing the needs of past and future development is what author calls the Software Chaos Loop, and it affects most software delivery organizations.

The modern software delivery organization has a solid CI/CD infrastructure and can push an update to production in minutes. This same pipeline can take in upstream library updates and block zero-day exploits. At scale, delivery systems can simultaneously ingest and update software from the hundreds of projects typical to modern application architecture. The scale is incredible.

The article then captures the following:

  • Focus the backlog on experiences
  • Complete unit and integration testing
  • User research focused on users
  • Focus on differentiation
  • Behavior economics, from adoption to end of life

The Software Chaos Loop affects many software development organizations and prevents them from delivering better products. It also reduces the amount of rework and revisiting of past deliverables that are required.

[Read More]

Bad bot traffic breaks records in 2020

Categories

Tags ai-and-machine-learning security-and-privacy data-and-analytics frontend-and-mobile software-engineering

Bad bots have long been a major illness plaguing the internet. As internet traffic reached new heights throughout the global pandemic, unfortunately so did bot traffic. By Erez Hasson.

In 2020, 40.8 percent of internet traffic wasn’t human, and 25.6 percent originated from bad bots. What have these bad bots been doing throughout the year?

The article content:

  • Scalpers changed their targets
  • Bots are looking for vaccine appointments
  • Did bad bots target the elections?
  • Account Takeover attacks are more prevalent than ever
  • The travel industry remains a favorite target of sophisticated bots

Also known as Credential Stuffing and Credential Cracking brute force attacks, these are one of the most sinister automated threats infecting the internet today. Data from Imperva Research Labs reveals a third of all login attempts in recent months have been malicious. Good read!

[Read More]

Google analytics will track data without cookies

Categories

Tags data-and-analytics frontend-and-mobile product-and-design

When cookies aren’t available, Google Analytics will soon be able to gather data using machine learning. By Matt Southern.

Google announces several updates that will help provide site owners and advertisers with relevant data when cookies aren’t available.

The new privacy-safe tracking methods, which don’t involve Google’s controversial FLoC technology, rely on consented first-party data and machine learning.

With these updates for site owners and advertisers, Google will:

  • Extend its advanced machine learning models to behavioral reporting in Google Analytics.
  • Allow seamless access to Consent Mode, which adjusts how Google tags operate based on user cookie consent choices.
  • Implement enhanced conversions that allow tags to use consented, first-party data to track how users convert after engaging with ads.

Google Analytics will soon utilize machine learning to enhance marketers’ understanding of the customer journey with or without cookies. Interesting read.

[Read More]

Programmatically generate images with CSS Painting API

Categories

Tags frontend-and-mobile product-and-design

A JavaScript API for dynamic image creation coupled with CSS. Images add color to an application. However, as we all know, having a lot of high-resolution images affects the page load time. By Viduni Wickramarachchi.

Painting API workflow

Source: https://blog.bitsrc.io/programmatically-generate-images-with-css-painting-api-3b1a860dae3b

If you need a geometric image in your application, you don’t have to include it as an asset anymore. You can programmatically generate geometric images on the fly using the CSS Painting API.

The article will walk you through:

  • Introduction to the CSS Painting API
  • Using the CSS Painting API in practice
  • Generated image
  • What else can we do with this CSS Painting API?
    • You can create dynamic images
    • You can generate random images using Math.random() in the paint() method
  • Browser support

The CSS Paint API is extremely useful to reduce the response time of network requests. This is achieved by generating some images programmatically rather than retrieving them via network requests. Good read!

[Read More]

Best practices for Node.js security

Categories

Tags security-and-privacy frontend-and-mobile backend-development

Like any other programming language or framework, Node.js is susceptible to every type of web app exposure. Although the basis of Node.js is secure, third-party packages may need more security standards to safeguard your web app. The study says that 14% of the NPM (Node Package Manager) ecosystem is impacted and 54% of the NPM ecosystem is about to be impacted indirectly. By Kiran Malvi.

NPM or the Node.js Package Manager is globally one of the largest open-source package ecosystems. This rich ecosystem has caused a boost in the app’s functionality and developer productivity.

The article then mentions these practices:

  • Restrict XSS attacks by validating user inputs
  • Abstain from data leaks
  • Utilize security linters
  • Implement access control on each request
  • Secure deserialization
  • Execute HTTP response headers

… and more. For the full list together with good solution suggestions for each of these follow the link to the full article.

Since Node.js libraries and frameworks allow app developers and engineers to create unique and complicated systems, they also expose those systems to lots of vulnerabilities. Staying ahead of modern Node.js security practices will help app developers create more secure systems for users. Nice one!

[Read More]

Good mental health practices for entrepreneurs

Categories

Tags leadership-and-career miscellaneous

While it’s essential that everyone pays attention to their mental health no matter their age, job title, or gender, entrepreneurs have a unique lifestyle that may require them to pay even closer attention. By Tycoonstory.

There’s no other way to say it – being an entrepreneur is hard.They have to keep up with stressful financial matters, are constantly working their brains by coming up with novel ideas, and usually contribute more of their day to work than most other people do.

So, how can you practice good self-care as an entrepreneur?

  • Adopt healthy habits
  • Lean on others
  • Set up strict boundaries
  • Manage your time better
  • Delegate work
  • Get a good night’s sleep
  • Do what makes you happy
  • Take it easy
  • See a professional sooner rather than later

It may be smart to consider hiring others to help out. You may feel like you are doing fine on your own but having even one other person to help makes a huge difference. No one’s path looks the same when you’re an entrepreneur. Sure, they may look similar, but every journey is different and new because the ideas being presented and sought after are new. Try to slow down and focus on the present-day instead of rushing through what needs to be done. Some good advice here!

[Read More]

WebRTC video calls implemented in React

Categories

Tags product-and-design frontend-and-mobile

Having been implementing WebRTC in production systems for almost a year now, we wanted to add this resource to the documentation available for the architecture of WebRTC videocalls. Partly to share our knowledge and common gotchas, and also to give back to the web standard that has supported us so well. By yown.it.

The introduction of WebRTC as a web standard is a process that has taken place across major browsers over many years. This means that it is intentionally “un-opinionated” when it comes to being used within frameworks.

This also means that most examples, while freely available, focus on vanilla javascript HTML implementations, the cleanest simplest way of streaming media streams between browsers.

The article deals with:

  • The “problem” with WebRTC
  • Discovery & data persistence
  • Initiation, hang-ups and identification
  • Perfect negotiation
  • Code Samples

Overcoming Perfect negotiation issue in React relies on using the event driven architecture, and we’ve included our code as a bonus. It took us a long time to implement perfect negotiation using the React component lifecycle and we don’t see many online examples. This article is excellent source of information on WebRTC topic. You will also get links to further reading and code samples. Nice one!

[Read More]

How we put the first quantum computer on the cloud

Categories

Tags ai-and-machine-learning software-engineering product-and-design cloud-and-infrastructure

Five years ago, we made history by launching the IBM Quantum Experience, putting the first quantum processor on the cloud for anyone to run experiments. By Ryan Mandelbaum @IBM.

Accessing quantum devices wasn’t easy prior to 2016. Theorists had to convince hardware researchers at institutions like IBM to help them realize experiments on custom quantum processors.

“It gave us the validation that we had something, and that we could get a lot of people behind it,” said Jerry Chow, now-Director of Quantum Hardware System Development at IBM. More importantly, it proved to IBM overall that this would be a project worth devoting resources to. After witnessing the ThinkQ 2015 audience response, IBM’s then-VP of Science and Technology Dario Gil asked the IBM Quantum team what it would take to deliver the project faster.

Five years ago today, the team made history by launching the IBM Quantum Experience, putting the first quantum processor on the IBM Cloud so that anyone could run their own quantum computing experiments.

At the end of his conference presentation, MIT professor Isaac Chuang asked the crowd: Would they use small-scale, cloud-based IBM quantum processors? Everyone raised their hands.

The biggest lessons learned were how to build stable devices, how to bring them online, and how to automate some of the most important experiments - especially device calibration.Putting a quantum computer on the cloud requires an entirely different mindset. Very interesting article, for details follow the link. Superb read!

[Read More]