pub_sub_model_sync

Permit to sync models and data between rails apps through pub/sub (google pubsub, rabbitmq, kafka)

MIT License

Downloads
88.8K
Stars
8
Committers
3

Bot releases are visible (Hide)

pub_sub_model_sync - Release 1.1.0

Published by github-actions[bot] almost 3 years ago

2021-10-25

New Features
  • change transactions_max_buffer default value to 1 to deliver notifications once they were called (831729e6)
  • use after_commit instead of before_commit callback and remove the horrible AR patch for rails 4 (753b39af)
pub_sub_model_sync - Release 1.0.1

Published by github-actions[bot] about 3 years ago

2021-08-20

Chores
  • improve log messages (a7c67be7)
Documentation Changes
  • improve code documentation (65681262)
  • improve code documentation (867a0f87)
Refactors
  • improve service exit when running in k8s (a9ee09f2)
pub_sub_model_sync - Release 1.0

Published by github-actions[bot] over 3 years ago

2021-06-14

Chores
  • improve documentation (a057c142)
  • improve documentation (0ac221b5)
  • improve documentation (31c5ef96)
  • improve readme (1856bd8e)
  • improve readme (40ab3c5a)
  • CI add auto release action (2d6198ec)
  • improve readme (c8dfe80d)
  • improve readme (dded7eab)
  • Add samples (1c84a17f)
  • configure docker-compose (ec3ab943)
  • update readme (118b324f)
  • deps: bump rexml from 3.2.4 to 3.2.5 (b4901e3c)
Documentation Changes
  • improve code documentation (03546eb1)
New Features
  • payloads backward compatibility (4d63649b)
  • improve error message when no values for identifiers (e67499c5)
  • make reusable parse_mapping_for to convert sync mapping into hash with values (83fd33f1)
  • initialize transactions with emoty key to be filled by the first ps_publish or ps_class_publish (a44a5c1d)
  • rename ps_on_crud_event into ps_after_commit more understandable (d21e70b2)
  • Add block support as the callback when subscribing (3e973a76)
  • add max_buffer for pubsub transactions (609504b7)
  • add "ugly" Rails 4 compatibility to prepare notifications before_commit. By this way sql transaction will be rollbacked if fails when building notifications (2fadfe25)
  • rails 4 compatibility (391e597d)
  • rename ps_crud_publish into ps_on_crud_event for better understanding (754b85bc)
  • improve transactions code style and update tests (bfeb0759)
  • refactored transactions to manage better inner notifications (93d987be)
  • support for plain objects (non DB models) (c608cddb)
  • add log messages when subscribing to topics (a0bcc6af)
  • increase error retries into 5 and add delays between retries (26a2bd99)
  • refactor subscriber to reduce ambiguity and be more readable (5a57864f)
  • improve publisher method args to be more readable (a79d101a)
  • rename ps_publish_event into ps_publish (shorter) (61d5b6a9)
  • refactor publisher to reduce abstraction (publish events on model callbacks) (e943e8d4)
Bug Fixes
  • include missing active_record dependency for rails 4 (a1ebd490)
  • typo (5e9d7d0b)
  • missing ActiveRecord (7e928ddc)
  • fix transactions to avoid sending duplicated notifications (645df857)
  • rails 4 unsupported method (009f3eae)
Other Changes
  • improve documentation (b16f994f)
  • destroy! on crud actions to raise default error messages (eb9e0b60)
  • update readme (b510a7b1)
  • owen2345/pub_sub_model_sync into feature/release-0.7 (21cb9b71)
  • remove ps_skip_publish? callback (659bc7b2)
  • before_commit compatibility (ac55f13e)
  • fix conflicts (d6dd8753)
  • validate message ordering when crud notifications (3d0a8e76)
  • add default_topic_name config opyion (2e19e461)
Refactors
  • retry message processing when failed due to DB connection issues (63c6d515)
Code Style Changes
  • improve code style (a7f1b22f)
  • improve code style (6d4dbb0c)
  • add messages when debug is enabled (ad1e7d7f)
  • improve code style (5f4b4c57)
  • improve code style (4e0b4e39)
  • update rubocop to ignore smaples (89d2cd23)
  • ruby 2.4 support (4996cf60)
  • improve code style (63f812c0)
  • improve code style (cfe500ab)
  • improve code style (bcf80c03)
Tests
  • add transaction tests (04598b15)