From Libraries to Layers

The code in this service and the order manager service have both been pre-converted to the new layer scheme that we introduced above. The main difference here is changes to our logging calls. Where our prior version simply called a Java library to log data, our Product and Order services now call our layer, supplying the “event“ from our Lambda call that contains our token. If you look at the various logging files in our services, you’ll see logging calls similar to the following:

LoggingManager.log(event, "ProductService::getProducts");