Git Product home page Git Product logo

Comments (7)

totalhack avatar totalhack commented on May 27, 2024 9

@jhaoheng I just ran into a similar issue.

alpine-sqs | com.typesafe.config.ConfigException$WrongType: /opt/config/elasticmq.conf: 31: fifo has type OBJECT rather than BOOLEAN

This was because I didn't put quotes around my queue name at first after introducing the .fifo suffix to match the AWS format. After making that change it works for me:

    "myqueue.fifo" {
        defaultVisibilityTimeout = 10 seconds
        delay = 0 seconds
        receiveMessageWait = 0 seconds
        fifo = true
        contentBasedDeduplication = false
    }

from alpine-sqs.

etos avatar etos commented on May 27, 2024 3

docker-compose.yml

    sqs:
      image: roribio16/alpine-sqs:latest
      container_name: alpine-sqs
      ports:
        - "9324:9324"
        - "9325:9325"
      volumes:
        - ./config/elasticmq.conf:/opt/config/elasticmq.conf
      stdin_open: true
      tty: true

/config/elasticmq.conf

include classpath("application.conf")

node-address {
   protocol = http
   host = "*"
   port = 9324
   context-path = ""
}

rest-sqs {
   enabled = true
   bind-port = 9324
   bind-hostname = "0.0.0.0"
   // Possible values: relaxed, strict
   sqs-limits = strict
}

queues {
   default {
     defaultVisibilityTimeout = 10 seconds
     delay = 5 seconds
     fifo = true
     contentBasedDeduplication = false
     receiveMessageWait = 0 seconds
   }
}

from alpine-sqs.

jhaoheng avatar jhaoheng commented on May 27, 2024

@etos thanks a lot

from alpine-sqs.

jhaoheng avatar jhaoheng commented on May 27, 2024

Hi, @etos Where to get the more detailed doc about configure?

from alpine-sqs.

jhaoheng avatar jhaoheng commented on May 27, 2024

Hi,
The AWS SQS has a policy is The name of a FIFO queue must end with the .fifo suffix.

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html

When I set, the q path is http://sqs:9324/queue/atlas_sql_queue.fifo, the SQS broken.

from alpine-sqs.

regevbr avatar regevbr commented on May 27, 2024

I just tried it and it works, maybe you forgot to add "FifoQueue": "true" to the create queue attributes?

from alpine-sqs.

jhaoheng avatar jhaoheng commented on May 27, 2024

Thanks, @totalhack it works

from alpine-sqs.

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.