Skip to content

Commit

Permalink
release housekeeping and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Dec 20, 2019
1 parent 16d595e commit fb43c46
Show file tree
Hide file tree
Showing 6 changed files with 1,060 additions and 3,872 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.idea
lib/
test/
coverage/
.travis.yml
.babelrc
*.tgz
.nyc_output/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changes

## 3.2.0

- Fixed rare deadlocks by stacking housekeeping operations one at a time during start().
- Added `archive()`, `purge()` and `expire()` to exports for manual housekeeping if desired along with connect(). Use this only if you need it for special cases, as it's not a good idea to run these in parallel (see deadlock comment above).
- Added index to archive table by date to improve housekeeping perf.
- Node 8 is now officially the minimum supported version. Not only have I stopped testing anything lower than 8 in Travis, but I finally migrated to async await in this round of changes.
- Typescript type defs.

## 3.1.7

- Typescript type defs for singletonNextSlot config updated via PR.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function readme() {

const queue = 'some-queue';

let jobId = await boss.publish(queue, {param1: 'parameter1'})
let jobId = await boss.publish(queue, { param1: 'foo' })

console.log(`created job in queue ${queue}: ${jobId}`);

Expand All @@ -32,11 +32,11 @@ async function someAsyncJobHandler(job) {
}
```

pg-boss is a message queue (aka job queue, task queue) built in Node.js on top of PostgreSQL in order to provide guaranteed messaging and asynchronous execution to your Node apps.
pg-boss is a job queue built in Node.js on top of PostgreSQL in order to provide background job processing and reliable asynchronous execution to Node.js applications.

Why would you consider using this queue over others? pg-boss was created to leverage recent additions in PostgreSQL 9.5
Why would you consider using this queue over others? pg-boss is actually a light abstraction over features added in PostgreSQL 9.5
(specifically [SKIP LOCKED](http://blog.2ndquadrant.com/what-is-select-skip-locked-for-in-postgresql-9-5) and upserts)
which significantly enhance its ability to act as a reliable, distributed message queue. I wrote this to remove a dependency on Redis (via the kue package), consolidating systems I have to support in production as well as upgrading to guaranteed message processing (hint: [Redis persistence docs](https://redis.io/topics/persistence#ok-so-what-should-i-use)).
which significantly enhanced its ability to act as a reliable, distributed message queue. I wrote this to remove a dependency on Redis (via the kue package), consolidating systems I have to support in production as well as upgrading to guaranteed message processing (hint: [Redis persistence docs](https://redis.io/topics/persistence#ok-so-what-should-i-use)).

This will likely cater the most to teams already familiar with the simplicity of relational database semantics and operations (querying and backups, for example).

Expand Down
7 changes: 0 additions & 7 deletions babel.config.js

This file was deleted.

Loading

0 comments on commit fb43c46

Please sign in to comment.