Creating a persistence adapter

Persistence protocol for the Consumer service consists of upsert, entity, and delete functions that are implemented by each adapter of this port. Adapters implementing the persistence protocol are then used within the Pedestal interceptor to create, update, query, and delete Consumer details. The implementation of the protocol and corresponding record is shown in the following code snippet that must be added to the persistence.clj source file:

(ns helping-hands.consumer.persistence  "Persistence Port and Adapter for Consumer Service"  (:require [datomic.api :as d]));; --------------------------------------------------;; Consumer Persistence Port for Adapters to Plug-in;; -------------------------------------------------- ...

Get Microservices with Clojure now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.