top | item 37952885

Inkscape Cloud Architect

188 points| mipselaer | 2 years ago |github.com | reply

77 comments

order
[+] pritambarhate|2 years ago|reply
I use draw.io for these kind of diagrams. It has symbols for most of the cloud services built in. It also maintains the arrow connections when we move around the elements. Very handy!
[+] petepete|2 years ago|reply
I use Excalidraw because I like the hand-drawn look when planning/sketching things out.

If/when I make the jump to actual documentation I use Mermaid so I can keep everything tidy under source control.

[+] wejick|2 years ago|reply
The way most people use draw.io is using cloud storage integration like Google drive, hence versioning is not possible. So far I never seen people put the draw.io produced file to Git. I'm using PlantUML in some of my projects, it solved the versioning issue. However it's lacking of lots of draw.io or even inkscape editor capability.
[+] teddyh|2 years ago|reply
Why use Inkscape for this, when Dia¹ is a more dedicated diagram editor?

1. <https://wiki.gnome.org/Apps/Dia/Screenshots>

[+] hn92726819|2 years ago|reply
Last release was 2014. I remember liking dia, but I forget...it either crashed or didnt have all the aws icons I wanted when I used it last 5 years ago, and there hasn't been a release since.
[+] vbernat|2 years ago|reply
As the README mentions "cloud-based" platforms, it should be noted that Diagrams.net (previously Draw.io) is available as an offline application. Inkscape is missing connection points and routing controls to make it easy to do diagrams. Also, Diagrams.net can export to SVG or PNG while keeping the original diagram embedded. I use that instead of the specific format they use.
[+] mipselaer|2 years ago|reply
Inkscape has connection points, but they are not working perfect currently. This should be addressed in the future.

Imo Inkscape is far more powerful then draw.io. it's also faster.

[+] Already__Taken|2 years ago|reply
I tried to get diagrams to pass through the container ID to the exported SVG "g" to find it's some massive java thing that hasn't been added to in years. There's a lot of scope for semantic SVG we could use in other tools.
[+] steve1977|2 years ago|reply
What I generally dislike about using graphics tools for diagrams is that they have no notion about the semantics of what is getting drawn. It’s just „pictures“.

In contrast to, for example, proper modeling tools like Sparx Enterprise Architect or Visual Paradigm.

It doesn’t really matter then if you’re using an online tool or a native one.

[+] pragmatic|2 years ago|reply
https://d2lang.com/

This lets you produce diagrams with code.

[+] minhmeoke|2 years ago|reply
Very cool, thank you! Creating diagrams using code rather than using drag-and-drop tools might be a good idea for more complex architectures as described here: https://www.ilograph.com/blog/posts/its-time-to-drop-drag-an...

- Can check the textual description of the diagram into version control and track how it changes over time

- Can easily diff 2 versions of the same diagram

- Adding elements to a large existing diagram using WYSIWYG tools can be tricky (eg: you may have to move or reroute existing elements to make enough space)

Another cool idea is to create multiperspective diagrams with different views for different purposes (eg: code structure, deployment, network architecture, security):

- Clarity. By breaking up diagrams into perspectives, diagram authors can bring much more clarity to a system. Individual concerns can be spread out over many perspectives, allowing each the space it needs without interfering with others.

- Extensibility. Multiperspective diagrams share a model, so creating additional perspectives from an existing diagram is incredibly easy, far easier than starting from scratch each time.

- Maintainability. A corollary to the above, individual perspectives can be modified without affecting the others. Diagrams that are easy to maintain get maintained, while diagrams that aren’t fall out of date quickly. Multiperspective diagrams greatly help in the fight to keep documentation up-to-date.

This is a cool demo: https://app.ilograph.com/demo.ilograph.Stack%2520Overflow%25...

For other textual diagramming tools and ideas, please see this thread: https://news.ycombinator.com/item?id=37222855

Disclaimer: I'm not affiliated with Ilograph, just stumbled onto their blog and I think they have a lot of cool ideas.

[+] jimmcslim|2 years ago|reply
I would suggest that if your architecture diagrams are a bunch of icons provided by AWS/Azure/GCP with lines pointing at each other... you are doing it wrong.

The 'what does this element do for my system' is vastly more important than the 'which in vogue offering from my cloud provider implements it'.

I highly suggest folks take a look at the C4 Model: https://c4model.com/

[+] diegoveralli|2 years ago|reply
I can't say using vendor specific icons is wrong, clearly a lot of people need just that, but I always miss more generic architectural components in these diagramming tools.

That's the problem I have with the `diagrams` Python package (https://pypi.org/project/diagrams/), I find it extremely useful, but the "Generic" section doesn't even include a "Queue" component, and the "OnPrem" section only includes specific queue products.

That Python package is exactly how I like to create diagrams, so I keep using it, but I always have to add my own badly-designed custom icons to it, which look so bad that I wouldn't dare send a PR to add them upstream.

[+] ahoka|2 years ago|reply
What a useless crap. It’s an over engineered documentation framework focusing on all the wrong things so some agile consultant can sell more cool aid. I don’t trust anything that is designed someone who last did real projects in the 2000’s OOP Java enterprise craze.
[+] forgotusername6|2 years ago|reply
I read this article and I'm left with the feeling that my entire application has no layer 3 i.e. the component layer. No single (useful) part of the application can be said to have a well defined interface or to be self contained. The strange thing is that I'm not actually that unhappy about that. I'm now sitting here thinking whether I should be more worried.
[+] mipselaer|2 years ago|reply
Great article. So you could say the current version is just a bunch of icons. Next step is adding meta info to the recourses. I'm currently working on a auto import funcion like you can use in Cloudcraft.
[+] bunsenhoneydew|2 years ago|reply
I really like the C4 model as part of a larger toolset. If you’re also using it then I recommend looking at https://icepanel.io/

Great tooling strongly based on C4, I use it a lot.

[+] grogenaut|2 years ago|reply
None of the visuals in the examples are distinct. Usually I have like chrome to a box labeled alb... I'm not sure what c4 is getting me over that
[+] jillesvangurp|2 years ago|reply
Depends on the target audience. Mostly the audience is hand wavy types that just want to point at a beautiful thing in a slide to point out "we have stuff with icons that you might know! Look at how beautiful this is. It almost looks like we know what we are doing!". Exaggerating here but anything that fits on a single slide is completely useless to an expert. Not worth drawing unless the goal is to impress non experts like that. It's a marketing tool in that case. The level of detail required for this is "a power point slide".

In companies/organizations that are large enough you always get a certain amount of project bureaucracy, ass coverage, and other documentation that doesn't technically do anything more than impress easily impressible types. But it's rarely actually useful. I usually just go straight to the code repositories and ignore things like wikis and other crap. Complete waste of time usually. Show me what you really have. I'll figure it out in no time.

Two mistakes people make with these tools:

1. Spending lots of time using them believing that the output is actually useful/valuable to engineers. Your time is more valuable. You should be doing more productive things. Minimize time you spend on drawing pretty pictures. They didn't hire you for your graphical design skills. This is of course subjective and context dependent. Sometimes it's just required to have diagrams. E.g. operations people like having good documentation just as a way to ensure that they can follow strict processes and make good decisions as to what is in their scope and what needs escalating. There's also a certain amount of impressing the customer, senior management, or other stake holders that "we have stuff". The bigger the company, the bigger the need for project bureaucracy like this. But it is bureaucracy and you want to be efficient with it. Quick and easy.

2. Believing that these are design tools. They are not. They are documentation tools. You use them after you build the thing. Before you build the thing, you use something like a white board. Or pen and paper. A napkin. Anything fast and easy that doesn't slow you down. It's transient stuff and when you start building the thing you'll realize half a dozen topics you did not take into account. So, other than as a record of all the design mistakes you are making, such diagrams have no long term value. You document the solution after you found, solved, implemented, and tested all the design problems. Not before.

Friendly reminder that the places where you are least likely to find diagrams:

- Any kind of large open source project. Or any open source project really. Just not a thing. The bigger and more complicated they are, the less likely it is to have diagrams. Reason: they are redundant and absolutely nobody volunteers to sit down and do them. Just ask yourself: "what would Linus Torvalds say when asked to provide diagrams for the linux kernel". I imagine a fair bit of cursing would happen.

- Especially open source projects that are about producing diagram tools. I personally find this highly ironic. People won't eat their own dog food when the dog food is diagramming tools. Diagramming tools are something you build for others to use. Go look for it on Github if you don't believe it. All you will find is toy examples but nothing actually documenting these tools in any level of detail.

- Small startups or other companies that are highly innovative and have a fast pace of change happening all the time. Reason: people have better things to do than mess around with diagrams. The rainy afternoon where you really have nothing more valuable than messing around with boxes and arrows to do never really happen.

Where do you find people messing around with diagrams? Bloated engineering teams in corporate situations. The more boring the company, the more useless types they employ, the more diagrams you will find. People insisting to each other that "somebody" (not them) should do a diagram. I usually just bounce the question when it comes up. "Great idea, when can you have it done?" Usually the implied suggestion is that I should sit down and waste my time doing a diagram for them that they will never even look at for more than a few seconds. It's write only documentation.

[+] smallerfish|2 years ago|reply
Your preview image has a transparent background, and isn't readable when github renders in dark mode.
[+] geokon|2 years ago|reply
I found a "hack" for diagrams that need to work with both white and black backgrounds was to make all your lines gray. And then when you want vary the intensity of the line you adjust the opacity

It cuts your effective dynamic range in half, but works pretty well. And adjusting opacity is actually somewhat easier than adjusting color hex values

I haven't tried it with colors though - but I expect it'd work as well

In contrast, forcing a white background on people running dark mode is kinda ugly in my opinion as you end up with a border/cutout and it doesn't flow with the rest of the content as well

[+] gsliepen|2 years ago|reply
I am surprised they used a PNG for the preview instead of an SVG file. I know you can embed JavaScript in SVG files, I wonder if it could react to the `prefers-color-scheme` CSS feature of the page it's embedded in.
[+] ygra|2 years ago|reply
As someone working indirectly on one of those “crap online editors”, I do wonder what benefits Inkscape has over other options for what is essentially a graph that may very well need an automatic layout. Someone else mentioned diagrams.net as well.
[+] otteromkram|2 years ago|reply
I would 100% recommend drawio (diagrams.net).

It has diagram standards + icon sets for top cloud/compute platforms.

Plus, if you use VSCode, there's a solid extension you can use to create and include the diagrams in your project.

[+] quickthrower2|2 years ago|reply
None. It is slower (because … not sure) and more complex (because it is designed for art/graphic design).
[+] antifa|2 years ago|reply
I needed a dbdiagram tool recently. I found some, but they had had at least one of 2 flaws:

Could not programaticly import/update schema without tons of additional mousing around.

Auto rearrange could not handle large schema.

[+] momirlan|2 years ago|reply
i use yEd from yWorks for all my diagramming. it is based on GraphML, can import nodes/vertices from excel/XML, it has good automatic layouts for large diagrams, and can output to GraphML, SVG, JPG, and many other formats.
[+] wejick|2 years ago|reply
yEd and GraphML is very versatile indeed. Years ago I worked on a quite big mobile game project, we used graphML to be the main quest / level / story format of the game and naturally yEd was the editor of choice. Pretty scrappy but it worked, somehow.
[+] davidy123|2 years ago|reply
I don't understand why more people don't care about round-tripping. Yes it was over ambitious and far too heavyweight in the 90s, but today you should be able to generate OpenAPI and its data and component equivalents from the visual graph, or inversely import your graph, then verify / update either "side" at any time. I've mentioned this before, but TogetherJ was the best example I saw, lightweight and worked well for visual/code round tripping when it was all in a predictable Java environment. Somehow we went from overdone to decades of "works for me" mucky muck.
[+] esafak|2 years ago|reply
If you have to annotate each box you might as well ditch the image. In which case you can describe what it does instead of just naming the service it uses. And use Mermaid markup for the diagrams; GitHub supports it!
[+] mipselaer|2 years ago|reply
I like Mermaid for small details but for big system drawings I prefer a mature design studio.
[+] mipselaer|2 years ago|reply
Make Inkscape a professional Cloud Visualization Studio for Cloud Architects.
[+] frankcostanza|2 years ago|reply
I build a lot of diagrams for external audiences and I've found both Excalidraw and LucidChart to be really useful. I use Excalidraw for live diagramming and use LucidChart for our external docs or more formal presentations.
[+] xg15|2 years ago|reply
For a moment I had thought they launched a specialized toolset for drawing clouds.

I'm slightly disappointed.

[+] wiseowise|2 years ago|reply
“Online crap editors”(Diagrams, excalidraw) run circles around slow “native” Inkscape.
[+] threatripper|2 years ago|reply
I could make that in general but I could not do it efficiently today. Is there a video showing exactly how to make this kind of diagram in Inkscape?
[+] mipselaer|2 years ago|reply
Will create this video, maybe today.
[+] T-Winsnes|2 years ago|reply
We’ve taken a different approach with hava.io, why draw yourself when you can automatically draw what’s in your cloud environment.
[+] rapnie|2 years ago|reply
Most diagramming solutions are like freehand drawing tools. Besides text-based diagrammers (Mermaid, PlantUML, D2Lang) what are good diagramming components for integration in a web front-end that help with strict, validated diagramming? Restricted tool pallet shapes and commands. I.e. defining that a "Concept Map" only has Concepts and Relationships, where the latter must be connecting 2 concepts for the diagram to be valid. Or an "Event Storming" diagram that only has the appropriate sticky note types that must be layed out appropriately on a timeline. Bonus points for supporting collaborative editing.

React Flow [0] until now is the component that's closest to this. Others, Excalidraw [1] and Tldraw [2] may be integrated to support this, with some additional effort.

[0] https://reactflow.dev

[1] https://excalidraw.com

[2] https://tldraw.com