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 OpenX Trains and serves for a million queries per second in under 15 milliseconds

Categories

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

Adtech is an industry built on latency at scale. At OpenX this means that during peak traffic periods our exchange processes more than one million requests for ads every second, most of which require a response in under 300 milliseconds. By Larry Price, OpenX.

To accomplish this, we’ve leveraged several products in the TensorFlow ecosystem & Google Cloud including TensorFlow Extended (TFX), TF Serving, and Kubeflow Pipelines - to build a service that prioritizes traffic to our buyers (demand side platforms, or DSPs in adtech lingo) and more specifically to brands, and agencies within those DSPs.

The OpenX marketplace is not completely unlike an equities market or stock exchange. And much like high volume financial markets, to ensure the buyers fulfill their campaign goals and simultaneously help publishers monetize appropriately on their inventory, there’s a need to prioritize traffic. Fundamentally, this means we need a model that can accurately value and hence rank every single request that hits the exchange.

Further in the article:

  • About OpenX
  • Cloud Transformation: A rare opportunity
  • Why TensorFlow
  • Training Terabytes of Data Every Day
  • Serving Over a Million Queries Per Second (QPS)
  • Building on Success

We liked: All of these out of the box features in TensorFlow Serving were a massive win for us and helped us achieve our goals, but scaling it to millions of requests a second was not without challenges. By using large virtual machines with many CPUs we were able to hit our target goal of 15 millisecond predictions, but it did not scale very cost effectively and we knew we could do better. Good read!

[Read More]

Operating Lambda: Application design

Categories

Tags architecture-and-apis cloud-and-infrastructure

In the Operating Lambda series, I cover important topics for developers, architects, and systems administrators who are managing AWS Lambda-based applications. This three-part series discusses application design for Lambda-based applications. By James Beswick.

Lambda natively supports a variety of common runtimes, including Python, Node.js, Java, .NET, and others. If you prefer to use any other runtime, such as PHP or Perl, you can use a custom runtime. There are lists of community-maintained runtimes for a wide range of programming languages or you can build your own. As a result, Lambda customers can run Erlang, COBOL, Haskell, and almost any other runtime needed to support their workloads.

The article then does a great job explaining:

  • Choosing and managing runtimes in Lambda functions
  • Runtimes and performance
  • Multiple runtimes in single applications
  • Managing AWS SDKs in Lambda functions
  • Networking and VPC configurations
  • Comparing Lambda invocation modes

This post discusses choosing and managing runtimes, the effect on performance, and how you can use multiple runtimes within a single serverless application. It explains the networking model and whether a Lambda function must have access to a customer VPC or can run with the default VPC configuration. It also compares the different invocation modes for Lambda functions. This is a part in 3 parts series of articles with links to further reading. Nice one!

[Read More]

Understanding Unikernels: The future of cloud computing, probably

Categories

Tags architecture-and-apis cloud-and-infrastructure devops-and-ci-cd software-engineering data-and-analytics ai-and-machine-learning

Having used Containers, Kubernetes and Serverless (a lot!) over the last few years, I catch myself wondering ‘What next?’ when it comes to more efficient, faster and secure units of computing. By Nithin Jois.

Unikernels – single purpose compute environments packaged with necessary dependencies, runtime, libraries, kernel capabilities and everything else required boot and run Application code, and System code in a single address space with No Operating System, No Users and No Shell resulting in smaller, faster and a more secure system.

The author will also walk you through steps he took to use Nanos unikernel by NanoVMs and their CLI tool ops to build, and deploy. It seems like the simplest option out there, and the documentation is fairly straight-forward as well.

The article then reads about:

  • What are Unikernels?
  • Types of Unikernels
    • Clean Slate
    • Legacy
  • VMs vs. Containers vs. Lightweight VMs vs. Unikernels
  • Comparison of High-level Architectures
  • Why isn’t everyone using this already!?
  • Implementing Unikernels
    • Prerequisites
    • IAM Permissions
    • Create Instance
    • Delete Instance
    • Security Considerations

One major security issue is the fact that unikernels run the application, and the kernel together as a single process allowing applications(or attackers) to potentially call kernel-level functions. Supply chain attacks, which are a very likely threat can make this a reality. The article provides the links to further reading, references and other similarly interesting projects. Well done!

[Read More]

AWS X-Ray in 5 minutes

Categories

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

X-Ray is AWS’s distributed tracing system. What the hell is a distributed tracing system? That means that you can trace requests as they travel through your architecture. By John T Earl.

When working in a micro-service world distributed tracing is a powerful tool that allows developers, operations, architects, and managers to see the big picture view of the application.

The author then quickly goes over:

  • How does AWS X-Ray work?
    • Segments
    • Traces
    • Service Map
  • When do I use AWS X-Ray?
  • X-Ray language support

X-ray uses an SDK and a daemon/agent. To use X-Ray you’ll need to integrate with the SDK and install the X-Ray agent then you’re good to go. X-Ray will receive data from services in segments. It groups any common segments together into something called traces.

AWS X-Ray is an invaluable tool for micro-services. If you’re working in a micro-service architecture and haven’t enabled X-Ray give it a try. Enabling X-Ray is simple and the service map it provides is great if you’re a visual learner. Like all AWS services, it’s cheap to use. The cost model is 100,000 free traces recorded a month, 1 million traces retrieved or scanned free each month. If you exceed that the cost is .000005 cents per trace or $5 per million traces. Light and to the point!

[Read More]

Build a GraphQL Server using Deno from scratch

Categories

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

GraphQL is already known for its good parts. GraphQL helps to build super scalable APIs. It reduces coupling between code and data provider. Deno is one of the fastest-growing frameworks/languages to build APIs. By Deepak Vishwakarma.

However, Deno community still new. So there is a very little framework in the Deno community. Some of them are in a very early stage of development.

In this article, author will explain how you can easily integrate the GraphQL nodejs module with Deno. This is a very basic implementation. The article goes over:

  • Introduction
  • Prerequisite
  • Basic project directory setup
  • Velociraptor as script runner
  • Basic server using Oak
  • Basic mock database
  • Create a /GraphQL endpoint to handle GraphQL POST request
  • Create GraphQL schema and resolver
  • Route to handle Query and execute

You will also get the link to repository with the code so you can follow the steps in the article. Interesting read!

[Read More]

How to become your own mentor

Categories

Tags leadership-and-career miscellaneous

The art of picking up wisdom from many different places. As creative entrepreneurs, we are always relying on inspiration. It’s what drives us forward to make new art and express ourselves in a financially viable way. By Jesty Beatz.

You can have the best idea in the world, but it won’t matter if you lack the knowledge of executing it. For this, we are dependent on those who came before us, those who cultivated their own knowledge through experience: mentors.

Unfortunately, not all of us will have the privilege of directly studying under a capable mentor. That doesn’t mean that you have to go at it without any help whatsoever, nor that you can’t move intelligently on your own. And once you have become successful, you will have the option of becoming the mentor you may never have had for others.

The most important aspect of having or being a mentor is cultivating wisdom from experience. When you put yourself out there, be aware. When you succeed, try to assess exactly why you could be successful in a given venture. What about your actions created a positive effect?

If you continue to succeed, you will eventually find yourself in a position where others rely on you for their livelihoods and inspiration. This is a great privilege, which is all too often taken for granted. Good read!

[Read More]

How to make Kafka Consumer compatible with Gevent in Python

Categories

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

Asynchronous task management using Gevent improves scalability and resource efficiency for distributed systems. However, using this tool with Kafka can be challenging. By Jessica Zhao and Boyang Wei.

At DoorDash, many services are Python-based, including the technologies RabbitMQ and Celery, which were central to our platform’s asynchronous task-queue system. We also leverage Gevent, a coroutine-based concurrency library, to further improve the efficiency of our asynchronous task processing operations.

However when migrating to Kafka, we discovered that Gevent, the tool we use for asynchronous task processing in our point of sale (POS) system, is not compatible with Kafka. This incompatibility occurs because we use Gevent to patch our Python code libraries to perform asynchronous I/O, while Kafka is based on librdkafka, a C library. The Kafka consumer blocks the I/O from the C library and could not be patched by Gevent in the asynchronous way we are looking for.

The article then describes how and why:

  • Why move away from RabbitMQ/Celery to Kafka with Gevent?
  • The new challenges of migrating to Kafka
  • Replacing Kafka’s blocking call with a Gevent asynchronous call
  • Throughput comparison: Kafka vs Celery

We liked: Celery and Kafka show similar results on small loads, but Celery is relatively sensitive to the amount of the concurrent jobs that it runs, while Kafka keeps processing time almost the same regardless of the load. Good read!

[Read More]

How we improved developer productivity for our DevOps teams

Categories

Tags devops-and-ci-cd leadership-and-career software-engineering

Across Spotify, our teams diligently strive to fulfill our mission to “unlock the potential of human creativity by giving millions of creative artists the opportunity to live off their work, and billions of fans the opportunity to enjoy and be inspired by it”. Published by Maria Jernström and Jason Palmer.

Our Golden Paths were created to help engineers start new projects quickly. This tool uses the wizard format to reduce the number of decisions engineers have to make to build backend services, application features, data pipelines, machine learning projects, and web apps. Golden Paths are also accompanied with documentation that describes the best engineering practices for this type of project.

Platform Developer Experience (PDX) Tribe, part of Spotify’s Technology Infrastructure Group, focuses on unlocking the creativity of engineers by building tools and establishing best practices that automate processes to make Spotify a true DevOps company. In Spotify focusing on speed, means quickly turning their ideas into products and experimenting to improve the user experience, growing into new markets, and remaining competitive as a content streaming provider

The article the describes how:

  • We need to experiment quickly
  • Automating the workflow to decrease build times
  • Let’s start with the Golden Path
  • Automatically building websites
  • Helping engineers confidently perform continuous deployment
  • DevOps operations for autonomous teams
  • Recapping our efforts to improve our DevOps organization

Previously, it took about 14 days for a web developer to build a campaign site, requiring a heavier lift to manage integrations between different technologies. To create a website developer used to have to complete many steps. There was clearly an opportunity for them to build a new process, automate the project setup, and allow Spotify’s engineers to move faster. As an infrastructure team, they’re consistently pushing the needle forward to create abstractions that reduce low-variance work. Very nice!

[Read More]

How to write custom cypher procedures with NetworkX and Memgraph

Categories

Tags cloud-and-infrastructure devops-and-ci-cd how-to product-and-design data-and-analytics leadership-and-career

NetworkX is a package for the creation, manipulation, and study of the dynamics, functions and structures of networks. It allows us to use complex graph algorithms to solve network-related problems. By Ivan Despot.

Graph in NetworkX example

Source: https://memgraph.com/blog/how-to-write-custom-cypher-procedures-with-networkx-and-memgraph

This tutorial is split into following sections:

  • Introduction
  • Prerequisites
  • Understanding NetworkX Basics
  • Setting up NetworkX in Memgraph
  • Writing a Custom Procedure for Cypher
  • Editing Graphs with NetworkX
  • Passing Arguments to Custom Procedures
  • MAGE - Introducing Memgraph Advanced Graph Extensions

… and more. While there are some limited functionalities, Memgraph offers a straightforward way of using the NetworkX package on graph-like objects that can stream the native database graph directly. This kind of implementation improves memory usage significantly and adds in-memory efficiency to NetworkX algorithms. You will get a lot of query examples and links to some more reading. Great!

[Read More]

Angular routing guide: How to optimize app navigation

Categories

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

Angular is one of the most popular front-end frameworks, with 30% of developers preferring it for their projects. Angular is especially useful for large scale projects with many different views and components. By Ryan Thelin.

The key to making these large scale projects engaging is a logical navigation structure that allows users to easily explore and revisit pages. Thankfully, Angular’s routing functionality makes optimizing navigation simple.

Today, we’ll learn more about Angular Router’s capabilities and help you make a fully navigable app. In this article author will cover:

  • What is Angular Router
  • What are wildcard routes
  • Child routes
  • The RouterLink Directive
  • Adding ActiveLink Styles
  • Lazy loading modules
  • What to learn next

The Angular Router is an importable package built-in to Angular 2+ by default. It’s used to build Single Page Applications with multiple views that can be navigated by URL, known as “routing”. Routing is the key to keep users engaging with your app, especially for large applications. However, it’s just one part of making an excellent Angular app. You will also get links to further reading, code to follow examples and charts explaining some concepts. Good read!

[Read More]