micro-apps | A polyglot monorepo | Continuous Deployment library
kandi X-RAY | micro-apps Summary
kandi X-RAY | micro-apps Summary
Modern microservices for Post-Kubernetes Era. Monorepo(apps, libs) project to showcase workspace setup with multiple apps and shared libraries.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of micro-apps
micro-apps Key Features
micro-apps Examples and Code Snippets
Community Discussions
Trending Discussions on micro-apps
QUESTION
I'm currently having a go at Angular Elements to make micro-apps. This all works fine and the process of including my micro-app into the container application works fine, but I'm having trouble when trying to increase the complexity of my micro apps to allow them to have their own router outlet.
I have added a router outlet into the main component of my Element and it does route through the components I have created but it changes the top level URL of the hosting application.
I was wanting to have this application route independently of the main application, and I tried this by using a named router outlet in my extension app and adding that name to the routes, but this resulted in an error saying the path could not be found.
Is there something obvious I am missing here, or is what I'm trying to do not yet supported by Angular Elements? All of the articles I have found online do not mention the router at all when showing how to make Angular Elements.
Thanks!
...ANSWER
Answered 2019-Nov-26 at 11:32For anyone who comes to this question - I found a great article that I managed to follow to get what I needed from this.
https://medium.com/@timon.grassl/how-to-use-routing-in-angular-web-components-c6a76449cdb
The gist of the article is that you can use a named router outlet inside the element app. You then choose either to use the RouterTestingModule to handle routes and not have the overall application URL change on nevigate, or do some poking around to get the named router outlet to affect the URL. Well worth a read.
QUESTION
I'm pretty new in developing Angular (7), because I think about the architecture for a new large web project. So I play a little bit with the possible options, especially using a micro frontend.
I created two angular projects -> "micro-app-shell" and "micro-app-a".
The shell is the outer container of the web application, which manages several micro-apps.
I read some articals about micro apps with angular and want to try the custom-elements approach.
"micro-app-a"
excerpt of "app.module.ts"
...ANSWER
Answered 2019-Jan-06 at 17:37You check my sample project here https://github.com/xmlking/angular-elements-in-angular-shell I am still planing improve developer experience
QUESTION
I'm trying to understand Phoenix 1.3 contexts.
I understand the separability into contexts (which in my mind I perceive as micro-apps, with clearly defined API boundaries), but I struggle when trying to figure out how to do a many-to-many relationship between them.
In the case of building a slack clone, a User can have many Chatrooms and a Chatroom can have many users.
In the 'model' based way of doing it, you would create an intermediate table user_rooms (with fields user_id, room_id), and then do join_through
.
What's confusing for me is:
- If I'm supposed to keep these are truly isolated, do I really want to be joining tables? There's nothing separate about that.
- If I have to keep my intermediate table user_rooms, what context should that go in?
(for background, I'm trying to do Step 4 of this https://medium.com/@benhansen/lets-build-a-slack-clone-with-elixir-phoenix-and-react-part-4-creating-chat-rooms-80dc74f4f704)
...ANSWER
Answered 2018-Aug-04 at 22:06One way to think about contexts is to view them as a layer of abstraction when you are designing your app. As it is put in the docs,
Phoenix projects are structured like Elixir and any other Elixir project – we split our code into contexts. A context will group related functionality, such as posts and comments, often encapsulating patterns such as data access and data validation. By using contexts, we decouple and isolate our systems into manageable, independent parts.
Models themselves with their underlying schema are therefore the units which you group into contexts. Models can have more fine-grained api which is necessary for their inner workings. Contexts in turn only expose methods which are useful to other application components or contexts, thus hiding the underlying implementation detail of the models.
It is not necessary to extend the context boundary down through the models level for absolute isolation. Instead you create your schema as usual, with all the many-to-many relations you need on the models. Then implement whatever low-level methods on the models directly. Put in the context only those methods which are either public api of the context or private methods touching more than one model.
UPDATE
In your scenario you might have e.g. Chats
context where you put the rooms
method. Its signature might be e.g. Chats.rooms_of(user)
. Repo.get()
also goes to the context as, e.g. def get(id), do: Repo.get(User, id)
. The models end up containing changesets, validation methods, private methods with no dependencies to other models. The context in turn gets most of the group's publicly available business logic methods.
QUESTION
I'm running into an issue with latency when using a set of micro-apps on EB with the load balancer. This issue is specifically with one nginx powered app trying to hit another app on ELB. If we hit the API using postman it's fast, but posting to the endpoint through nginx-lua is incredibly slow comparatively.
My requests are being proxy_passed by nginx-lua (openresty) for security purposes, along with a rewrite being done in nginx. Ex (changed paths and variable names)
...ANSWER
Answered 2018-May-21 at 15:54So the issue ended up being a problem we could fix by updating our resolvers.
In the location block we specified the resolvers for amazons DNS service, while we left the other resolvers the same to work for some internal proxy stuff.
This is now giving us the expected speed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install micro-apps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page