sqslite

command module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sqslite

Continuous Integration

sqslite is designed to be a lightweight, local development only testing backend for SQS based queue consumers and producers.

It's meant to mimic the behaviors of the "real" sqs service, but without the cost or complexity of setting up real SQS, specifically such that you can develop services safely against sqslite and be confident that they will then behave correctly in production.

Critically it:

  • simulates SQS queue sharding; messages come back in semi-random order, and rarely come back in full batches
  • enforces all of the validations and constraints that normal queues impose; e.g. 256KiB size limits, valid utf-8 chars etc.
  • enforces lifecycle constraints like 60s cooloffs on queue deletion

Getting started

> go install github.com/wcharczuk/sqslite@latest

You can then run the server with:

> sqslite --bind-addr=":4566"

This will start the server while listening on port 4566, feel free to change this to whatever you need.

To then connect with this server, you will need to change how you instantiate your sqs clients (this assumes you're using aws-sdk-go-v2):

sqsClient := sqs.NewFromConfig(sess, func(o *sqs.Options) {
	o.BaseEndpoint = "http://localhost:4566"
})

Limitations

FIFO queues are not supported.

As well, any features to do with Policies (i.e. IAM) and KMS are not supported.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
sqsctl command
internal
httpz
package httpz provides additional helpers above net/http for things like logging and gzip compression of responses.
package httpz provides additional helpers above net/http for things like logging and gzip compression of responses.
spy
scripts
demo/consumer command
demo/init command
demo/producer command
demo/reset command
integration command
spy command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址