Coder Social home page Coder Social logo

aws_sqs_entity's Introduction

Amazon SQS Entity

Dependencies

Installation & Setup

  1. Follow setup instructions for AWS Simple Queue Service module.
  2. Set the AWS SQS Entity queue name. This can be done either:
    • With drush: drush vset aws_sqs_entity_queue_name YOUR_QUEUE_NAME
    • In your settings file: $conf['aws_sqs_entity_queue_name'] = 'YOUR_QUEUE_NAME';
    • Using the settings form at admin/config/system/aws-sqs-entity.
  3. Set rules for your allowed list of Entity types, bundles, and CRUD operations.
    • Similar options as above. See \Drupal\aws_sqs_entity\Entity\CrudQueue::setRules() for documentation.

Required Patches

Please apply below patches if you encounter to any error or warning.

aws_sqs_entity's People

Contributors

asauterchicago avatar cyslee26 avatar dporter-nbcuni avatar jfrederick avatar mauricio-molina avatar scottrigby avatar

Stargazers

 avatar

Watchers

 avatar  avatar

aws_sqs_entity's Issues

hook_aws_sqs_entity_send_item() could pass more context

After we send an item to SQS, on this line we invoke the hook hook_aws_sqs_entity_send_item (bottom line of code snippet).

public function sendItem() {
    // Always a required step before attempting to create a queue item.
    $this->createQueue();
    $data = $this->getMessageBody();
    if ($result = $this->createItem($data)) {
      // Pass original keys to notification hook. This hook could allow, for
      // example, various kinds of reporting.
      module_invoke_all('aws_sqs_entity_send_item', $this->type, $this->entity, $this->op);

For the sake of using this hook to trigger reporting, it would be nice if the hook had more context, specifically:
A. The return status of the publish action (success or failure)
B. The message body that was sent

We could

  1. add these two parameters to the hook
  2. pass the CrudQueue object $this, from which many other things can be found
  3. Other?

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.