Giter Club home page Giter Club logo

geode-examples's Introduction

Build Status License

Apache Geode examples

This is the home of Apache Geode examples that are bundled with the project. Contributions[2] and corrections are welcome. Please talk to us about your suggestions at [email protected] or submit a pull request.

Adding a new example

Follow this approach to add a new example:

  • Create a subdirectory with a descriptive name like cache-writer
  • Create a README.md file in the example subproject to walk the user through the tutorial
  • Create a Java class with a main method in the org.apache.geode.examples.$name.Example class
  • Create a cluster initialization script in scripts/start.gfsh
  • Create a cluster shutdown script in scripts/stop.gfsh

The scripts should contain gfsh commands for starting locators, servers, and creating regions--everything that the example program will need to use. Where appropriate you should also add unit tests. To customize the build you can add a build.gradle file.

Note that the build may fail if you do not add ASF license headers or use the correct formatting (you can fix formatting with gradle spotlessApply).

Running an example

The gradle build will automatically download and install a Geode release in the build directory. You can run an example with the following gradle targets:

  • build - compiles the example and runs unit tests
  • start - initializes the Geode cluster
  • run - runs the example Application
  • stop - shuts down the cluster
  • runAll - invokes start, run, stop

The commands you need to invoke will be given in the README.md file. Sample usage:

$ ./gradle :replicated:start
$ ./gradle :replicated:run
$ ./gradle :replicated:stop
$ ./gradle runAll

Catalog of examples

The following sections call out ready-made examples or new examples that could be built. You may want to start your journey with the Apache Geode in 15 minutes or Less tutorial.

Basics

Intermediate

  • PDX & Serialization
  • Lucene Indexing
  • OQL Indexing
  • Functions
  • CacheLoader & CacheWriter
  • Listeners
  • Async Event Queues
  • Continuous Querying
  • Transactions
  • Eviction
  • Expiration
  • Overflow
  • Security
  • Off-heap

Advanced

  • WAN Gateway
  • Durable subscriptions
  • Delta propagation
  • Network partition detection
  • D-lock
  • Compression
  • Resource manager
  • PDX Advanced

Use cases, integrations and external examples

This section has self-contained little projects that illustrate a use case or an integration with other projects.

  • SpringBoot Application
  • HTTP Session replication
  • Redis
  • Memcached
  • Spark Connector

References

Export Control

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

The following provides more details on the included cryptographic software:

geode-examples's People

Contributors

dihardman avatar metatype avatar pivotalsarge avatar upthewaterspout avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.