Josh Pollock, Oct 05

Advanced OOP for WordPress: Customizing REST API Endpoints

Josh Pollock digs into advanced OOP for WordPress, showing how to use filters to modify the WordPress REST API using an object-oriented approach. He walks through how to create a WordPress plugin to modify the capabilities of WordPress REST API endpoints so they can be better optimized for search.
Jesse Krasnostein, Oct 03

How Blinkist Powers Millions of Users on MongoDB Atlas

Not unlike other startups, Blinkist grew its roots in a college dorm. Only, its creators didn’t know it at the time. It took years before the founders decided to build a business on their college study tricks.
Gilad Maayan, Oct 02

AWS, Azure & Google Cloud Backup Solutions Compared

In this article, we're going to dig deep into various characteristics of the major cloud services for backup purposes. We'll primarily focus on the top three cloud platforms - Google, Azure and AWS.
Tonino Jankov, Sep 28

How to Automate App Deployment to Alibaba ECS with Mina

In this article we will go through setting up Mina for the deployment of a basic Django app – an unorthodox toolset for the Django world, which tends to use Docker or Fabric more. Given Mina’s simplicity and flexibility, we feel it is worth exploring its use in the deployment of Python web apps.
Lucero del Alba, Sep 26

How to Set Up a Reverse NGINX Proxy on Alibaba Cloud

Need to serve many websites from a single Linux box, optimizing resources, and automating the site launch process? Let’s get serious and set up a production-ready environment using Ubuntu, NGINX, and Docker — all of it on Alibaba Cloud.
Rakhee Ghelani, Sep 25

Seven Steps for Growth Hacking Your Business with Data

No data? No problem. Rakhee Ghelani explains how you can growth hack your way to business success in seven steps.
Joe Drumgoole, Sep 24

Setting up Your PyMongo Environment

We introduce developers to programming MongoDB using the Python programming language. PyMongo is the name of the client library (in MongoDB speak we refer to it as a "driver") we use to interact with the MongoDB Server.
Eleanor Scott, Sep 19

Growing a Business Is About the Customer, Not the Product

The first thing most people think about when launching a new enterprise is what they’ll be selling, but what they should really be focusing on is who they’ll be selling to. Although your product is important, no matter how good it is, if people aren't interest in buying it, then your business is likely going to struggle.
John Fairhurst, Sep 12

How to Grow Your Business from $0 to $20M

John Fairhurst introduces Steve McLeod, founder and chairman of Fire and Safety Australia, Australia’s leading safety training company, exploring his secrets on how he grew his business from the ground up.
Michael Lynn, Sep 06

Integrating MongoDB and Amazon Kinesis for Intelligent, Durable Streams

You can build your online, operational workloads atop MongoDB and still respond to events in real time by kicking off Amazon Kinesis stream processing actions, using MongoDB Stitch Triggers.
SitePoint Team, Sep 05

How to Set up a Secure Relational Database on Alibaba Cloud

Gain an introduction to ApsaraDB for RDS, a cloud-based relational database product provided by Alibaba Cloud.
SitePoint Team, Sep 04

How to Create Websites with Slides, a Developer-Friendly Tool

Slides lets you customize your design as you're creating it. When you have the design you want, you can customize it even further if you wish.
SitePoint Team, Sep 03

Power Your Business Applications with Elastic Compute Service

This webinar provide a clear introduction to the Alibaba Cloud ECS, which will help you to gain a better understanding of the ECS product portfolio and the benefits of using this product to power your own web applications from 18 global deployment regions.
Simon Julian, Aug 30

Adsense and AdWords - why use them?

There are a lot of different ways that savvy people monetise the web, of which AdSense is only one. This article explores the good and bad of using Adsense and the Adwords platform and gives you an overview out of how to get the best out of them in the early days.
SitePoint Team, Aug 30

Quickly Deploy WordPress & phpMyAdmin on Alibaba Cloud with ROS

This document shows how to deploy a WordPress site and phpMyAdmin application using the ROS template with a single click.
SitePoint Team, Aug 29

WordPress Management Made Easy with the Plesk WordPress Toolkit

In this session, we will show you the Plesk WordPress Toolkit – a tool that is simplifying the lives of web professionals on Alibaba Cloud.
Alberto Roura, Aug 28

How to Deploy Apps Effortlessly with Packer and Terraform

As developers, we can easily incorporate DevOps in our daily tasks. With this tutorial you will see how easy is to orchestrate a whole deployment with just a couple of config files.
SitePoint Team, Aug 27

Case Study: AO.com Builds Single Customer View with MongoDB

We spoke with Jon Vines, Software Development Team Lead at AO.com, about the experience of building the single customer view application, his development philosophy, and the impact it’s having at AO.
Simon Julian, Aug 26

Three ways to grow your traffic and capture audience

SitePoint Team, Aug 23

Mobile Gaming: Build a Security Token Service with Object Storage Service

Through STS, you can issue federated users, who are managed in your local account system, with an access credential that customizes the expiration duration and access permission.
Craig Buckler, Aug 14

7 of the Best Code Playgrounds

Craig Buckler lists 7 of the most popular code playgrounds tfor experimenting with your front-end code, such as CodePen and JSFiddle, along with suggestions for playing with back-end code, hosting your own code playground, and even installing an offline code playground in your own browser!
Craig Buckler, Aug 13

3D Transformation Functions in CSS

Craig Buckler shows how to add another dimension to your web pages and applications with the new 3D transformation functions and properties in CSS, covering transform, translate, rotations, scaling, perspective and more, along with z-index, browser gotchas, and ideal use cases.
Maxime Beugnet, Aug 09

Java and MongoDB 4.0 Support for Multi-document ACID Transactions

This article was originally published on MongoDB. Thank you for supporting the partners who make SitePoint possible.


MongoDB 4.0 adds support for multi-document ACID transactions.

But wait... Does that mean MongoDB did not support transactions until now? No, actually MongoDB has always supported transactions in the form of single document transactions. MongoDB 4.0 extends these transactional guarantees across multiple documents, multiple statements, multiple collections, and multiple databases. What good would a database be without any form of transactional data integrity guarantee?

Before we dive in this blog post, you can find all the code and try multi-document ACID transactions here.

Quick start

Step 1: Start MongoDB

Start a single node MongoDB ReplicaSet in version 4.0.0 minimum on localhost, port 27017.

If you use Docker:

  • You can use start-mongo.sh.
  • When you are done, you can use stop-mongo.sh.
  • If you want to connect to MongoDB with the Mongo Shell, you can use connect-mongo.sh.

If you prefer to start mongod manually:

  • mkdir /tmp/data && mongod --dbpath /tmp/data --replSet rs
  • mongo --eval 'rs.initiate()'

Step 2: Start Java

Alistair Robson, Aug 07

Make Your Website Earn for You with Google AdSense

Google AdSense is a simple and free way for website publishers to earn money by showing relevant and engaging ads alongside your online content.