# Sample Categories __[app-config](https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/app-config)__ Sample code for client configuration, connection best practices and exception handling using Java __[Connect and query](https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/connect-and-query)__ Sample code for connecting to Amazon DocumentDB from Python, PHP, Node.js and Ruby (more coming soon) __[Change Streams](https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/change-streams)__ Sample code that shows how to use AWS DocumentDB change streams to stream events to ElasticSearch, Amazon Managed Stream for Kafka (or any other Apache Kafka distro), AWS Kinesis Streams, AWS SQS, and/or S3 using AWS Lambda __[Templates](https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/templates)__ Cloudformation templates __[global-clusters](https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/global-clusters)__ Sample bash script to automate global cluster failover