Zajemite podatke o toku klikov s spletnega mesta za e-trgovino

Izvorno vozlišče: 1865790

Povzetek

In this developer code pattern, we will show how to create a database of ecommerce clickstream data with DataStax Enterprise or Apache Cassandra. Using Red Hat OpenShift and the DataStax Kubernetes Operator for Apache Cassandra, you can deploy this distributed database on-premises or on your cloud provider of choice with a unified OpenShift experience. If you prefer a database-as-a-service provider, get up and running quickly with IBM Cloud Databases for DataStax.

Opis

The provided ecommerce website is built using server-side rendering (SSR) with Next.js and React components. As customers browse the web pages, SSR quickly (and asynchronously) inserts browsing data in the database for each page rendered. When the customer clicks the “Add to cart” button, the client-side React component uses Next.js API routes to add that clickstream data. The DataStax Enterprise database is optimized for low-latency fast writes and is designed to be highly scalable. This make DataStax Enterprise a great fit for collecting high-volume clickstream data.

Ko dokončate ta vzorec kode, boste razumeli, kako:

  • Select a cloud, cluster, or development platform for Apache Cassandra or DataStax Enterprise
  • Provision DataStax Enterprise or a DataStax distribution of Apache Cassandra
  • Design and create a database for DataStax Enterprise
  • Use CQL and cqlsh to create and query your database
  • Build and run the Next.js web app, which tracks clickstream data

Pretok

Flow diagram

  1. Users interact with ecommerce website.
  2. Web pages and components capture clicks.
  3. Clickstream data is stored in a fast-write highly scalable database.

navodila

Podrobna navodila dobite pri README mapa. Ta navodila pojasnjujejo, kako:

  1. Deploy DataStax Enterprise or Apache Cassandra
  2. Interact with your database using CQL and cqlsh
  3. Interact with your database using the DataStax Node.js client

Ta vzorec kode je del Razvijte inteligentno strategijo zalog in nabave z uporabo umetne inteligence seriji.

Source: https://developer.ibm.com/patterns/datastax-enterprise-dse-code-pattern-using-clickstream-data/

Časovni žig:

Več od IBM razvijalec