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 ]

LangChain has added Cypher Search

Categories

Tags apis app-development search database data-science

With the LangChain library, you can conveniently generate Cypher queries, enabling an efficient retrieval of information from Neo4j. By Tomaz Bratanic.

If you have developed or plan to implement any solution that uses Large Language Models, you have most likely heard of the LangChain library. LangChain library is the most widely known Python library used to develop applications that use LLMs in one or another capabilities. It is designed to be modular, allowing us to use any LLM in any available modules, such as chains, tools, memory, or agents.

Further in the article:

  • What is a knowledge graph
  • Setting up Neo4j environment
  • Knowledge Graph Cypher Search

Graph databases are an excellent tool for retrieving or analyzing the connections between various entities like people and organizations. In this blog post, we looked at a simple shortest path use case, where the number of relationships and the sequence of relationship types is unknown beforehand. These types of queries are virtually impossible in a vector database and could also be quite complicated in a SQL database. Nice one!

[Read More]

Keep parts of your GraphQL Introspection Query hidden

Categories

Tags apis app-development restful devops

Using directives and plugins in Apollo Server 4 to customize the introspection query output. Once you have created your first schema and your GraphQL server is up and running, it makes sense to implement precautions to prevent it from being compromised by bad actors. By Florian Fuchs·

This article will explore excluding fields from an introspection request without disabling the server’s discoverability feature by completely turning off the introspection queries. You will then learn:

  • The result of hiding parts of the schema on introspection
  • Taking a look at GraphQL schema introspection
  • Directives in Graphql can apply custom logic
  • Formalizing the @hidden directive
  • Why does the directive alone not work?
  • Plugins in Apollo server allow you to hook into the request life cycle
  • An implementation tells more than 1000 words!

First, this is, by no means, a safeguard for your server. Even if we omit certain fields and types from the introspection response, they are still part of the schema and will be available normally. Secondly, you must ensure that any reference to other definitions you have made must also be hidden. Always double-check if you are not breaking other tools that are relying on your schema by carelessly using the hidden directive 🙌 Good read!

[Read More]

Web app performance root cause analysis with Application Insights

Categories

Tags web-development app-development performance azure frontend

Having the ability to identify clear root cause for incidents in production workloads is valuable, the best way to prevent future incidents is to understand what caused past ones. Of course you can have a good set of load tests but still, incidents in production environments can happen and it’s crucial to have available data that can help to understand what happened so application can be improved and prevent replications. By LuisLopes.

In this article we will learn how to use Application Insights and automatic profiler to find root cause for past incidents and prepare logging platform to ensure meaningful data for analysis. The guide goes over:

  • Check configuration
  • Isolate relevant data in a concrete scenario
  • Finding the latency source
  • Other tools
  • Checking profiler trace using Windows Performance Analyzer

Having the profiler option enabled in Application Insights is a great way to root cause past events without having to wait for problem to happen again to collect fresh data. Traces can be isolated, verified and changes applied avoiding future incidents. In this article is shown how to isolate relevant data in timeline, locate traces and use them to root cause analysis. Good read!

[Read More]

Deploying securely into Azure architecture with Terraform Cloud and HCP Vault

Categories

Tags cloud azure devops learning

Learn how to build a secure infrastructure as code workflow with Terraform Cloud dynamic provider credentials, Microsoft Defender for Cloud, and HCP Vault. By David Wright, Arnaud Lheureux.

In this part, we will set up more security utilities to provide a defense-in-depth approach to cloud vulnerabilities. These utilities include Microsoft Defender for Cloud, Dynamic provider credentials in Terraform Cloud, HashiCorp Cloud Platform (HCP) Vault.

Further in the article you will learn about:

  • Reference architecture
  • Dynamic provider credentials with Terraform Cloud and HCP Vault
  • Adding HCP Vault on Azure

Incorporating security tools along with best practices into your infrastructure as code is essential for maintaining secure and reliable infrastructure. By doing so, organizations help ensure that their cloud deployments are secure, compliant, and easily maintainable. Code examples and video tutorials are also linked in the article. Good read!

[Read More]

Encapsulation in Java (with example)

Categories

Tags java oop programming learning

Encapsulation is a fundamental concept in object-oriented programming (OOP) that allows developers to achieve data abstraction, improve code maintainability, and create more robust software. In this article, we will dive deep into the principles of encapsulation in Java, understand its benefits, and explore the best practices to implement it effectively. By Rahul.

In this article you will learn:

  • Encapsulation overview
  • Benefits of encapsulation
  • Encapsulation in Java
  • Example of encapsulation in Java
  • Best practices

Mastering encapsulation in Java is crucial for writing clean, maintainable, and robust code. By adhering to the principles of encapsulation and following the best practices outlined in this article, you can create well-structured, modular, and reusable software that is easier to develop, debug, and maintain. Nice one!

[Read More]

Autonomous database observability

Categories

Tags monitoring performance database analytics devops

Autonomous Database (ADB) Observability blog series where we’ll cover the basics of database observability and then introduce the most relevant Oracle tools and services that you can leverage to observe your Autonomous Databases. By German Viscuso.

What’s needed is more abundant, higher-quality telemetry that can be used to create high-fidelity, context-rich, fully correlated multi-level metrics for every application event, transaction, infrastructure change, etc. Enter Observability.

The article pays attention to:

  • Observing the autonomous database
  • Observability tools and services for autonomous database within the OCI console
    • Direct access to ADB metrics
    • Events and notifications
    • Performance hub
    • Database actions monitoring pages
  • Oracle Cloud observability and management platform

Autonomous Database on Dedicated Exadata Infrastructure and Cloud@Customer gives you the best of both worlds today: the ability to run natively in the cloud (OCI) or on-premises (Cloud@Customer) while providing deep levels of observability (at the database instance, fleet and data plane levels) via a rich set of Oracle tools and services that cover the whole database observability cycle. Good read!

[Read More]

Building and training your first neural network with TensorFlow and Keras

Categories

Tags data-science big-data app-development analytics

Learn how to build and train your first Image Classification model with Keras and TensorFlow using Convolutional Neural Network. By Aryan Garg.

AI has gone so far now, and various state-of-the AI models are evolving that are used in Chatbots, Humanoid Robots, Self-driving cars, etc. It has become the fastest-growing technology, and Object Detection and Object Classification are trendy these days.

Here is the complete workflow of this tutorial:

  • Importing necessary libraries
  • Loading of the data
  • Preprocessing of the data
  • Building the model
  • Evaluating the model performance

This article shows the entire process of building and training a Convolutional Neural Network from scratch. We got around 75% accuracy. You can play with the hyperparameters and use different sets of convolutional and pooling layers to improve the accuracy. Nice one!

[Read More]

Building and deploying MySQL Raft at Meta

Categories

Tags mysql database cloud software-architecture app-development

At Meta, we run one of the largest deployments of MySQL in the world. The deployment powers the social graph along with many other services, like Messaging, Ads, and Feed. Over the last few years, we have implemented MySQL Raft, a Raft consensus engine that was integrated with MySQL to build a replicated state machine. By Anirban Rahut, Abhinav Sharma, Yichen Shen, Ahsanul Haque.

To allow for high availability, fault tolerance, and scaling reads, Meta’s MySQL datastore is a massively sharded, geo-replicated deployment with millions of shards, holding petabytes of data. The deployment includes thousands of machines running over several regions and data centers across multiple continents.

Tah article then explains:

  • Why was MySQL Raft necessary?
  • The Raft library and the MySQL Raft plugin
  • MySQL Raft replication topologies
  • Replicated log
  • Write transaction on MySQL primary using Raft
  • Crash recovery
  • Raft-initiated state machine transitions
  • Monitoring the MySQL Raft rollout
  • Performance

… and more. The biggest win of MySQL Raft was simplification of the operation and making MySQL servers take care of promotions and membership. This gave the provable safety of Raft and reduced significant operational pain. Our goals of having a hands off-management of MySQL consistency, and having tools for the rare cases of availability loss, are mostly met. Good read!

[Read More]

How to build an NFT gallery using QuickNode's GraphQL NFT API

Categories

Tags blockchain apis cloud fintech app-development

A step-by-step tutorial on building an interactive NFT Gallery using QuickNode’s GraphQL NFT API, icy.tools, JavaScript, Next.js, and Tailwind CSS. By Aayush Gupta.

In this tutorial, you will build an NFT gallery using QuickNode’s GraphQL NFT API, Icy.tools, React, JavaScript, Next.js, Vercel, and TailwindCSS. The React web app will provide a user interface displaying a grid view of all the NFTs held by any Ethereum Name Service (ENS). You will fetch NFT data with icy-nft-tools.

The content of the article:

  • What is QuickNode?
    • What is QuickNode’s GraphQL NFT API?
    • Explore QuickNode Marketplace!
  • The Functionalities
  • The Tech Stack
  • The Prerequisites
  • Step 1: Creating Next.js project
  • Step 2: Installing the icy-nft-hooks library
  • Step 3: Getting an NFT API key
  • Step 4: Installing the dotenv package
  • Step 5: Fetching the NFT
  • Step 6: Display the NFT gallery
  • Step 7: Deploy NFT gallery
  • Full code base

QuickNode is a blockchain platform that provides infrastructure for developers to build and scale decentralized applications (DApps). It offers a suite of tools and services, including a developer API, to make it easier for developers to build, test, and deploy DApps on multiple blockchain networks. Good read!

[Read More]

How to mock HTTP APIs with MockServer

Categories

Tags app-development apis cloud agile web-development

This post covers step-by-step instructions on how to use MockServer to mock an HTTP API, as well as an overview of limitations one may encounter. As the name suggests, MockServer is a powerful tool that allows developers to mock HTTP APIs, making testing much easier and more efficient. It aims to solve the problem of testing APIs that are still in development or not yet available, allowing developers to continue working without being held up by dependencies. By Kasper Siig. Kasper Siig.

This post will cover step-by-step instructions on how to use MockServer to mock an HTTP API, as well as an overview of any limitations you might encounter. It’s important to note that while MockServer is a great tool, it may not be the best fit for every use case. Further in teh article:

  • What is MockServer?
  • How to Mock HTTP APIs
  • The limitations of MockServer
  • Align the Tool with your use case

In conclusion, this post has provided a comprehensive guide on how to use MockServer to mock HTTP APIs, with a focus on an intriguing example of an online game platform’s RESTful API. MockServer can be used to effectively isolate client-side interactions for testing, with minimal dependency on actual server availability. However, while MockServer is a powerful tool, it’s important to consider its limitations in simulating complex scenarios and real-world network conditions. Good read!

[Read More]