description Pedestal Overview
Pedestal is a Clojure-based backend framework designed for building scalable web applications. It offers a structured approach to API development integrating routing, data management, and presentation layers. Notably, Pedestal utilizes interceptors for centralized request handling enhancing modularity and maintainability. The framework is primarily suited for developers experienced with functional programming and seeking a robust platform for creating high-performance services.
help Pedestal FAQ
What is a Pedestal interceptor?
An interceptor is a processing unit that can act during the enter, leave, or error stages of a request. Pedestal chains interceptors around a shared context map, allowing authentication, logging, parsing, and response handling to remain composable.
How are routes defined in Pedestal?
A service supplies route data that Pedestal expands into matched interceptor chains. Routes can be represented using terse vector syntax or more explicit route maps containing paths, HTTP methods, names, and handlers.
Is Pedestal just another Ring middleware framework?
Pedestal can work with Ring-style request and response maps, but its core execution model is an interceptor chain rather than nested middleware functions. The enter and leave stages make bidirectional processing explicit.
Can Pedestal stream server-sent events?
Yes, Pedestal's service libraries include support for Server-Sent Events. An endpoint can start a stream from an interceptor and send named events, IDs, or plain data to browser clients using EventSource.
explore Explore More
Similar to Pedestal
See all arrow_forwardReviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.