Announcement Announcement Module
Collapse
No announcement yet.
DynamoDB support Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DynamoDB support

    Just started a project that is moving from Heroku/MongoDB to AWS/DynamoDB. Would DynamoDB be supported by one of the existing APIs? Is anyone looking at this?

  • #2
    I would also like this...

    but I have not found another solution yet.

    Comment


    • #3
      I too am curious about how this will end up. I am interested in getting DynamoDB support, but I need it from the SpringData side, not the Amazon SDK side.

      Comment


      • #4
        I'm planning to code my own DynamoDB support, but would consider collaborating on this if there is enough interest. I'll probably end up creating the working code and then look at releasing it to the community. I particularly want to have the Spring Data REST integration.

        The one thing I wish I knew in advance is whether or not there are any significant blocking issues architecturally (from the Spring side)--I am assuming that the proper interfaces and what not are there for me to fill in to get the Spring Data and Spring Data REST integration with DynamoDB that I am seeking.

        I guess I'll know in a couple of days though. :-)

        Edit:
        Looks like this should not be a problem at all given that there is already a RiakTemplate out there:
        http://static.springsource.org/sprin...eference/html/

        From what I understand, DynamoDB inspired Riak to begin with...

        Edit 2:
        Looks like I'm just going to make a my own CrudRepository template that uses @DynamoDBTable annotated model classes with the aws provided DynamoDBMapper so there's not exactly a lot of code to implement here unless implementing CrudRepository isn't sufficient for exporting as a @RestResource, but it appears to be.

        It feels dirty using Spring for AWS, but unfortunately I can't afford the resources to even consider CloudFoundry as I am the dev, administrator, and operations team in one.

        Edit 3:
        Looks like I also need to implement my own @EnableDynamoRepositories @interface support, RepositoryFactorySupport, and all the connected dependencies. Hopefully I'm near the end of this dependency chain...

        Edit 4:
        We're not in kansas anymore! http://www.quickmeme.com/meme/3tpcjv/ At least I'm learning a lot about Spring. I'm gonna ride this bronco to the end or die trying . This would surely be trivial if I just had a bit more knowledge...
        Last edited by Garbanzo; Apr 4th, 2013, 07:54 PM.

        Comment


        • #5
          http://www.quickmeme.com/meme/3tpz3e/

          I am just going to create my own REST layer based on Spring Data interfaces and have it support Servlet 3.0 Async Methods yet return org.springframework.hateoas.Resource elements so that at least I get one major advantage vs. using the current implementation of Spring Data REST while still getting some stuff for free. The other significant thing is that the accept header content type does not support versioning, so when an entity version changes you can't handle it using the same URL as version 1 of your entity schema. The API I am making will returning multiple content types that are versioned by the accept headers so that the rest API URL never changes between versions. It should be possible to add this feature to Spring Data REST via annotations on domain models though.

          It's an amazing framework and better than I could have designed, but I just don't have any more time to burn when I know I can generate the APIs that I need today--today. I will revisit this a few versions down the line though as I was working off of 1.1.0 M1 as it stood anyway.
          Last edited by Garbanzo; Apr 5th, 2013, 04:05 PM.

          Comment


          • #6
            I have to finally add a huge thank you to the author of this code and an appreciation for the work that has been done here--while I am not integrating directly with it, I am learning a great deal and am successfully using the spring hateoas classes thanks to the example it provides--and I am starting to fully appreciate the scope of what has been done here--it is impressive. Now I'll try to refrain from blogging on this thread anymore. Thank you!

            Comment


            • #7
              I've started development on a DynamoDB module for Spring-Data - still a work in progress but I hope others find it useful: https://github.com/michaellavelle/spring-data-dynamodb

              Comment

              Working...
              X