aws-codestar-lambda - This is an example on running a Pedestal Service on AWS Lambda via API Gateway. It’s designed to be a [CodeStar](https://aws.amazon.com/codestar/) project and ships with CodePipeline and CloudFormation support.
buddy-auth - This sample demonstrates integration with
the [buddy-auth](https://funcool.github.io/buddy-auth/latest/) library
using a Basic Authentication backend. In the process, it demonstrates
how to port buddy-auth’s
wrap-authorization middleware functions to interceptors.
chain-providers - This sample demonstrates using Pedestal with a custom backend server. Interceptor Chain Providers allow Pedestal to be used on top of any HTTP Server that’s supported on the JVM.
cors - Here we demonstrate an implementation of [cross-origin resource sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing).
fast-pedestal - This sample illustrates various techniques to reduce latency and increase throughput/goodput.
hello-world - A bare-minimum Pedestal service that greets visitors.
helloworld-metrics - Pedestal offers metrics logging capabilities starting with Pedestal-0.5.0.
The default metrics recorder publishes to JMX, but you can override that
behavior by setting the JVM Property
or the environment variable
The value of the setting should be a namespaced symbol
that resolves to a 0-arity function or nil.
That function should return something that satisfies the MetricRecorder protocol.
http2 - This very simple app demonstrates using Jetty’s HTTP2 capabilties.
http2-conscrypt - This very simple app demonstrates using Jetty’s HTTP2 capabilties.
jetty-web-sockets - This sample illustrates how to use WebSockets with Pedestal and Jetty.
nio - This sample demonstrates using a ByteBuffer as a response body. For large response amidst a high number of concurrent connections, using NIO (via a ByteBuffer or ReadableByteChannel) can increase your app’s performance.
ring-middleware - Pedestal incorporates existing ring middleware into its
interceptors functionality. In this example, we implement a service
that stores your name in the session via setting a session token
in the cookie store. We are depending on
for this functionality.
server-sent-events - Demonstrates setting up, using and tearing down a server-sent-events event stream. Events are sent from multiple threads.
server-with-links - This very simple app demonstrates generating a link based on your application’s routing table.
servlet-filters-gzip - This sample shows how to use Servlet Filters and new Jetty Handlers within your Pedestal services. The sample specifically applies a gzip filter to the service configuration of Jetty. To check on the encoding of the server’s response, hit with curl, requesting compression:
template-server - Included (in no particular order):
tracing - # Working with Distributed Tracing
tracing-interceptor - # Working with Distributed Tracing using Pedestal’s Trace Interceptor
tracing-interceptor-aws - # Working with Distributed Tracing using Pedestal’s Trace Interceptor
war-example - This sample shows the necessary tooling and options for building a deployable WAR file.