We have covered session management in ExpressJs using a global variable technique which of course will not work in case of shared server or concurrent execution of HTTP requests which is the most familiar production scenario. Codeforgeek readers requested to provide a solution for this issue and the optimal one is to use external session […]
We have covered session management in ExpressJs using global variable technique which of course will not work in case of shared server or concurrent execution of http requests which is most familiar production scenario.
Codeforgeek readers requested to provide solution for these issue and the optimal one is to use external session storage which is not dependent on application requests, answer is Redis cause this is the light weight and easy to use NoSQL database.
In this tutorial i am going to explain how to design and code session oriented express web applications by using Redis as external session storage.
To get familiar with Session handling in ExpressJS I recommend to read our first article …
[Read more]
The link dbt2.0.37.50 manual provides the details
of how to use the dbt2-0.37.50 scripts
to execute benchmarks using MySQL Cluster.
These scripts can be used to execute automated test runs of
Sysbench, DBT2 and
FlexAsynch. I also use it to start up NDB Clusters to run DBT3
benchmarks and
YCSB benchmarks.
This set of scripts originates from 2006 when I wanted to
automate all my benchmark
efforts. The most challenging benchmarks constitute starting more
than 100 programs
to work together and using more than 100 machines. This requires
automation to
be succesful.
Now running any benchmark is a 1-liner e.g.
./bench_run.sh --default-directory /path/to/dir --init
The preparation to run this benchmark is to place a file called …
Camunda BPM is an open-source workflow and decision automation platform. Camunda BPM ships with tools for creating workflow and decision models, operating deployed models in production, and allowing users to execute workflow tasks assigned to them.
By default, Camunda comes with an embedded database called H2, which works pretty decently within a Java environment with relatively small memory footprint. However, when it comes to scaling and high availability, there are other database backends that might be more appropriate.
In this blog post, we are going to deploy Camunda BPM 7.10 Community Edition on Linux, with a focus on achieving database high availability. Camunda supports major databases through JDBC drivers, namely Oracle, DB2, MySQL, …
[Read more]This tutorial shows how you can install Nginx on an Ubuntu 18.04 LTS server with PHP 7.2 support (through PHP-FPM) and MySQL support (LEMP = Linux + nginx (pronounced "engine x") + MySQL + PHP).
Node.js and MySQL is one of the necessary binding needed for any web application. MySQL is one of the most popular open source database in world and efficient as well. Almost every popular programming language like Java or PHP provides driver to access and perform operations with MySQL.
In this tutorial i am trying to cover code for learning and code for production. So if you know this already and looking for ready made code for production. Click here to jump there directly.
Introduction:
Node.js is rich with number of popular packages registered at package registry called …
[Read more]In my prior blog post on Terraform, I demonstrated building the dependent infrastructure that MySQL implementations need. Building MySQL isn’t much different, but does identify a need for a Webserver to provide configuration files for Terraform to execute on as was done in my prior MySQL on OCI post, and a Yum Repo Webserver to… Read More »
In my prior blog post on Terraform, I demonstrated building the dependent infrastructure that MySQL implementations need. Building MySQL isn’t much different, but does identify a need for a Webserver to provide configuration files for Terraform to execute on as was done in my prior MySQL on OCI post, and a Yum Repo Webserver to… Read More »
We’re happy to announce that our newly updated whitepaper MySQL Replication for High Availability is now available to download for free!
MySQL Replication enables data from one MySQL database server to be copied automatically to one or more MySQL database servers.
Unfortunately database downtime is often caused by sub-optimal HA setups, manual/prolonged failover times, and manual failover of applications. This technology is common knowledge for DBAs worldwide, but maintaining those high availability setups can sometimes be a challenge.
In this whitepaper, we discuss the latest features in MySQL 5.6, 5.7 & 8.0 as well as show you how to deploy and manage a replication setup. We also show how …
[Read more]
The past couple of blog entries have been on Geographic
Information Systems and Geometric Data. Visualizing that
data with MySQL Workbench makes it easier for me to see what the
results really mean.
| Workbench 8.0.15 will draw the polygon with the Spatial View Option |
So how do you get there?
Start Workbench, create a new SQL Tab in your favorite scratch
schema, and crate the table below.
CREATE TABLE `test` (
`id` INT NOT NULL AUTO_INCREMENT,
`geom` GEOMETRY NULL,
PRIMARY KEY (`id`));
Next add some data.
INSERT INTO `test` …