February 2021 Summaries
3 posts from Memgraph
Filter
Month:
Year:
Post Summaries
Back to Blog
Ivan Despot's tutorial provides a comprehensive guide to developing a credit card fraud detection application using Memgraph, Flask, and D3.js, illustrating the advantages of graph databases for handling complex, inter-related datasets often seen in fraud detection scenarios. The tutorial walks through setting up a basic Python web application that simulates credit card transactions and identifies fraudulent activities by leveraging the relationship traversal capabilities of graph databases. It covers the installation of necessary tools like Flask and Docker, the creation of a graph schema to model entities such as credit cards, POS devices, and transactions, and the implementation of business logic to detect and resolve fraudulent transactions. Additionally, it demonstrates how to dockerize the application for consistent deployment across different environments and introduces client-side logic for visualizing compromised POS devices and their transactions using D3.js. The tutorial emphasizes the efficiency of graph databases in real-time scenarios compared to traditional relational databases and encourages users to explore further possibilities with graph-powered applications.
Feb 24, 2021
4,195 words in the original blog post.
This blog post explores the integration of NetworkX, a Python package for network analysis, with Memgraph, an in-memory graph database, to improve efficiency when working with large datasets. Despite NetworkX's power, its Python implementation can be slow with extensive networks, which is where Memgraph's capabilities come into play. By using Memgraph as a storage solution, users can benefit from additional functionalities and efficient memory usage. The post demonstrates how to implement custom Cypher procedures using query modules, showcasing the creation and manipulation of graphs through examples involving cities and roads. It also introduces MAGE, an open-source repository for Memgraph extensions, encouraging community contributions to enhance graph algorithm implementations. The post concludes by highlighting the benefits of Memgraph's integration with NetworkX, offering an efficient and straightforward approach to handling complex graph data.
Feb 15, 2021
1,650 words in the original blog post.
In the v1.3 release, Memgraph introduced data replication, a new feature designed to enhance data availability and consistency across distributed systems. The implementation of this feature was challenging due to the need to integrate replication into an existing system without major alterations. Memgraph's replication allows instances to take on MAIN or REPLICA roles, with various modes—SYNC, ASYNC, and SYNC WITH TIMEOUT—offering different balances of the CAP theorem's properties: consistency, availability, and partition tolerance. The system uses transaction timestamps and durability files for synchronization, employing a file retainer to prevent the premature deletion of files critical for replication. Timing issues and the need for efficient file handling were addressed using custom threading solutions and unique identifiers to maintain data integrity across instances. Extensive testing, including simulations using the Jepsen library, ensured robustness by exposing edge cases and validating system behavior under stress. While the current replication feature marks significant progress, Memgraph plans to introduce additional functionalities to further refine its capabilities.
Feb 08, 2021
3,688 words in the original blog post.