Questions tagged [alternator]

Alternator - A DynamoDB Mock Server

Alternator was created out of necessity; testing simple functions with DynamoDB was a pain because it would take time to create testing tables and tear them back down. This would slow down our BDD approach to this project.

To fix this, we've created a local data-store used for testing and development purposes by replicating DynamoDB's functionality. Our goal is to simplify the development and testing of DynamoDB specific functionality.

6 questions
2
votes
1 answer

Alternator fails with global secondary index

The following works with dynamodb but fails with alternator. CreateTableRequest createTableRequest = new CreateTableRequest() .withTableName("test") .withKeySchema(new…
Anon21
  • 2,961
  • 6
  • 37
  • 46
1
vote
3 answers

Why does Alternator mock DynamoDB fail from maven but not Eclipse?

I have been in touch with the author of Alternator about this issue, and he's as puzzled as I am. The short story: I have written unit tests of code that operates against DynamoDB using the Alternator mocking framework that work fine when I invoke…
0
votes
1 answer

How to use streams with Scylla-Alternator? What is best practice?

The streams description of my table returns 2048 shards with Scylla-Alternator. With DynamoDB I get only one. For DynamoDB I have poll the one shard stream once per second. If I do the same with Scylla-Alternator this results in 2048 requests per…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
0
votes
1 answer

How to reset codeigniter alternator() function

How do I set an alternator to its inicial position? Code: foreach($items as $item): foreach($sides as $side): echo alternator('Left', 'Right'); endforeach; //I want the alternator to "restart" here and always…
rafaelmorais
  • 1,323
  • 2
  • 24
  • 49
0
votes
3 answers

AlternatorDBClientV2 exception when instantiated

This code private AlternatorDBClientV2 Client; @Before public void setUp() throws Exception { this.Client = new AlternatorDBClientV2(); } gives me this exception java.lang.IllegalStateException: Unrecognized prefix for the AWS http client…
Anon21
  • 2,961
  • 6
  • 37
  • 46
0
votes
2 answers

Trying to connect to alternator (Simulator for DynamoDB)

I am trying to setup alternatorDB to develop a DynamoDB based application, but I'm getting this error while trying to establish a connection: I've provided the code, error and the pom.xml of the project below. Alternator is running as a standalone…
EternallyCurious
  • 2,345
  • 7
  • 47
  • 78