Giter Site home page Giter Site logo

Comments (4)

lakhina avatar lakhina commented on May 25, 2024

@ignasi35 Not sure if you are pointing toward these https://github.com/lagom/online-auction-java/blob/master/user-api/src/main/java/com/example/auction/user/api/User.java#L17

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 25, 2024

Hi @lakhina. This issue refers to the serialization engine behind the persistence layer.

Lagom uses two different serialization solutions: one for the service layer (API) and another one to exchange information between the nodes of the akka cluster (pubsub, akka-persistence, etc...).

This issue refers to the later.

Some back-story:

  • Akka provided serializers for several well-known types in both scala and java. Unfortunately, java.util.Optional was not on that list originally. In order to implement a Lagom persistent entity where a State could be Optional<MyBasketOrder> (or Optional<PItem>) a serializer for java's Optional was required. While it was not provided in Akka itself we developed our own for the online-auction app. Currently akka provides one so we should remove our custom serializer and let akka's pick up.

from online-auction-java.

lakhina avatar lakhina commented on May 25, 2024

@ignasi35 From my understanding at this point we have to replace usage of com.lightbend.lagom.serialization with usage of serialization from akka.
Am I going wrong?

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 25, 2024

@lakhina we have to make sure [JOptionalSerializer](https://github.com/lagom/online-auction-java/blob/b6bea26afad45461a43c437dfd8ea70e52d783a4/item-impl/src/main/java/com/example/serializer/JOptionalSerializer.java) (and related code) is removed but the application still works. ;-)

from online-auction-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.