Hacker News new | ask | show | jobs
by no1youknowz 3412 days ago
Quite interesting that this just been posted.

I have to produce an events application with a UI similar to this: http://i.imgur.com/e0R1Kp5.png

The UI is already done, so that's not the reason for the post.

My question is, on the backend, is there a pattern I can use to easily execute the steps?

I know there is a combination of logic, cron, a MQ and a db to hold the flow. But I am unsure on how best to approach the development of this framework.

Probably if someone is passing by and you've built something like this. I'd love your input as I'm a bit unsure how to proceed.

I'd really like best practice and implement something that is robust!

Thanks

6 comments

I think that you're probably looking for a finite state machine. There are a number of libraries for this, so have a look around and pick one that looks good. I haven't used it myself but would love to hear about other people's experiences with them.
Thank you for the "finite state machine" mention. I haven't seen this in my research so far. Will be adding this to the list to look up.
Worth perusing this for thoughts about doing an FSM in go: https://talks.golang.org/2011/lex.slide#1
Maybe you could get some inspiration from http://nodered.org. It's pretty generic despite the IoT mention.
would love to use it. the only people i know who has something similar are

- treeline.io which is backed by sailsjs.

- aws step functions. Used to coordinate lambda functions. check https://states-language.net/spec.html

> aws step functions...

By the way, AWS step functions allow the creation of state machines just like @rashkov mentioned in the adjacent comment. If you don't mind being locked in to AWS, using step machines with lambda functions would be a great way to do this.

that interface looks really useful, is there anyway I could get my hands on something like that. It'll be of even greater benefit if you can describe the process of building that interface. edit: nevermind I read the comments down the thread
Conversio.com offers abandoned cart recovery
which library did u use to make this flowcharty UI?
I needed a diagram to showcase my question. This isn't my UI.

However, I used https://jsplumbtoolkit.com to create my own UI.

What program did you use to create the diagram?
Sorry, you are taking me too literally there. This is just a screenshot.
So the imgur image you posted is just a random flow chart you found online? Is that correct?
When they said

>I have to produce an events application with a UI similar to this: http://i.imgur.com/e0R1Kp5.png

I read that as "I have to produce an events application with a UI similar to OP, here's what mine looks like". Probably this is what confused you as well.

Google tells me it's a screenshot of a marketing tool: https://www.getresponse.com/features/marketing-automation.ht...