Size: a a a

Ruby, Rails, Hanami | dry-rb

2020 December 04

w

wi11son in Ruby, Rails, Hanami | dry-rb
Viacheslav Stepanov
Кому нужны эти книги, главный вопрос - как войти в айти, если джунов не берут особо
Кто не берет?
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Gustavo
Is it a big deal if users like me ask questions in English instead of Russian? Thanks for now
Sure, be my guest
источник

VS

Viacheslav Stepanov in Ruby, Rails, Hanami | dry-rb
wi11son
Кто не берет?
Ну многие жалуются тут в чатах, что джуны не нужны особо.
источник

G

Gustavo in Ruby, Rails, Hanami | dry-rb
I would like to ask a specific question about dry-transaction.

In this case: is it possible to send a notification to put a message in a queue for example when a transaction failed during the chain of transactions?
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Ну многие жалуются, это то что люди часто делают
источник

G

Gustavo in Ruby, Rails, Hanami | dry-rb
wi11son
Sure, be my guest
Thanks, man! Good to know it!
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Gustavo
I would like to ask a specific question about dry-transaction.

In this case: is it possible to send a notification to put a message in a queue for example when a transaction failed during the chain of transactions?
источник

AD

Anton Davydov in Ruby, Rails, Hanami | dry-rb
Gustavo
Is it a big deal if users like me ask questions in English instead of Russian? Thanks for now
Hey Gustavo, I think we can try to help you!
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
You can use step listener for that
источник

AD

Anton Davydov in Ruby, Rails, Hanami | dry-rb
источник

G

Gustavo in Ruby, Rails, Hanami | dry-rb
wi11son
You can use step listener for that
Yes, I see I can send notifications for a topic or a mail address user. But this notification method inside transaction is agnostic enough to accept a method to send a message to a queue like rabbitMQ?
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Btw, some time ago, there were quite similar event listening approach in Rails
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Gustavo
Yes, I see I can send notifications for a topic or a mail address user. But this notification method inside transaction is agnostic enough to accept a method to send a message to a queue like rabbitMQ?
Well no, it is just a callback and you can use rabbit mq client to send events, when handling event
источник

AD

Anton Davydov in Ruby, Rails, Hanami | dry-rb
Gustavo
Yes, I see I can send notifications for a topic or a mail address user. But this notification method inside transaction is agnostic enough to accept a method to send a message to a queue like rabbitMQ?
Could you explain what the problem do you try to solve? Do I understand right that you want to call specific code (notifications for example) for specific Failure result?
источник

G

Gustavo in Ruby, Rails, Hanami | dry-rb
Anton Davydov
Could you explain what the problem do you try to solve? Do I understand right that you want to call specific code (notifications for example) for specific Failure result?
Sure, of course. Yes, I'm modeling my solution to use dry-transactions and at certain point we thought about notify other system about a failed step and I thought about queue to not miss this information of failure
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Зырьте, че ребенок залепил, воткнул две крутилки в ардуину и сделал гонялку машинки по экрану на скрече и ардуине, одна ручка - руль, другая ручка меняет скорость
источник

EE

Evgenii Efremov in Ruby, Rails, Hanami | dry-rb
wi11son
Зырьте, че ребенок залепил, воткнул две крутилки в ардуину и сделал гонялку машинки по экрану на скрече и ардуине, одна ручка - руль, другая ручка меняет скорость
ардуин это из звездных войн что то?
источник

w

wi11son in Ruby, Rails, Hanami | dry-rb
Я в 7 лет носился с разгона в стенку разве что...
источник

EE

Evgenii Efremov in Ruby, Rails, Hanami | dry-rb
wi11son
Я в 7 лет носился с разгона в стенку разве что...
я крапиву палкой пиздил
источник