Articles

Conception de microservices pour l'IA

La conception de microservices pour l’IA est une tâche complexe qui nécessite une compréhension approfondie des principes de l’intelligence artificielle et des technologies modernes.

2. Event-driven Architecture

The event-driven architecture pattern is based on the concept of an event-driven system, where events are generated by components and handled by other components. In AI microservices, events are triggered by changes in data or model parameters, and the corresponding services are notified to take appropriate actions. This pattern is useful for real-time applications such as autonomous vehicles, where the system must respond quickly to changing conditions.

3. Containerization

Containerization is a key component of AI microservices, allowing for the deployment of multiple services in a single environment. This pattern enables the efficient packaging and deployment of AI models, making it easier to scale and manage them. Additionally, containers provide an isolated environment for each service, ensuring that any changes made to one service do not affect the others.

Conclusion

The integration of AI into microservices architecture is becoming increasingly important in today’s software landscape. The 10 design patterns discussed in this article are essential for developing efficient, robust, and scalable AI solutions. By leveraging these patterns, developers can create powerful AI applications that are modular, scalable, and flexible.

1. Modèle en tant que service (MaaS)

MaaS considère chaque modèle d’intelligence artificielle (IA) comme un service autonome. En exposant les fonctionnalités d’IA via des API REST ou gRPC, MaaS permet un redimensionnement et une mise à jour indépendants des modèles. Ce modèle est particulièrement avantageux pour gérer plusieurs modèles d’IA, permettant une intégration et une déploiement continus sans perturber l’ensemble du système.

2. Architecture orientée événement

Le modèle d’architecture orientée événement est basé sur le concept d’un système orienté événement, où les événements sont générés par des composants et traités par d’autres composants. Dans les microservices d’IA, les événements sont déclenchés par des changements de données ou de paramètres de modèle, et les services correspondants sont notifiés pour prendre les actions appropriées. Ce modèle est utile pour les applications en temps réel telles que les véhicules autonomes, où le système doit réagir rapidement aux conditions changeantes.

3. Conteneurisation

La conteneurisation est un composant clé des microservices d’IA, permettant le déploiement de plusieurs services dans un seul environnement. Ce modèle permet l’empaquetage et le déploiement efficaces des modèles d’IA, facilitant leur mise à l’échelle et leur gestion. De plus, les conteneurs fournissent un environnement isolé pour chaque service, ce qui garantit que tout changement apporté à un service n’affecte pas les autres.

Conclusion

L’intégration de l’IA dans l’architecture des microservices devient de plus en plus importante dans le paysage logiciel actuel. Les 10 modèles de conception discutés dans cet article sont essentiels pour développer des solutions d’IA efficaces, robustes et évolutives. En exploitant ces modèles, les développeurs peuvent créer des applications d’IA puissantes qui sont modulaires, évolutives et flexibles.

Source de l’article sur DZONE

: Utilisation et applicationConception de modèles: Utilisation et application

des modèles sont des méthodes essentielles pour comprendre et prédire le comportement des systèmes complexes. Découvrons comment ces modèles peuvent être appliqués.

Les modèles de conception fournissent une base fondamentale pour la construction de logiciels maintenables et évolutifs. Comprendre comment fonctionnent les modèles, pourquoi ils offrent un avantage et quand les utiliser permet de s’assurer que le logiciel est construit à partir de composants orientés objet réutilisables. Dans cette Refcard, nous plongerons dans les concepts qui sous-tendent les modèles de conception, examinerons les 23 modèles Gang of Four (GoF) qui ont entraîné la prolifération des modèles de conception et examinerons certains modèles courants qui ont évolué depuis la publication des modèles GoF.

Les modèles de conception offrent une base fondamentale pour la construction de logiciels maintenables et évolutifs. Comprendre comment fonctionnent les modèles, pourquoi ils offrent un avantage et quand les utiliser permet de s’assurer que le logiciel est construit à partir de composants orientés objet réutilisables. Dans cette Refcard, nous plongerons dans les concepts qui sous-tendent les modèles de conception, nous examinerons les 23 modèles Gang of Four (GoF) qui ont entraîné la prolifération des modèles de conception et nous examinerons quelques modèles communs qui ont évolué depuis la publication des modèles GoF.

Le codage est une partie importante de la conception des modèles. Les concepteurs doivent comprendre comment le code peut être décomposé en composants réutilisables et comment ces composants peuvent être combinés pour créer des solutions plus complexes. Les modèles de conception fournissent des moyens pour structurer le code et le rendre plus facile à maintenir et à modifier à l’avenir. Les modèles de conception peuvent également aider à réduire les dépendances entre les composants, ce qui permet aux concepteurs de modifier un composant sans affecter les autres composants.

Le codage est également important pour l’implémentation des modèles de conception. Les concepteurs doivent comprendre comment le code peut être structuré pour implémenter un modèle de conception et comment le code peut être optimisé pour réduire la complexité et améliorer les performances. Les concepteurs doivent également comprendre comment le code peut être testé pour s’assurer qu’il fonctionne correctement et qu’il est conforme aux spécifications. Les outils de test automatisés peuvent aider à vérifier que le code est conforme aux spécifications et à détecter les bogues avant la mise en production.

Source de l’article sur DZONE

The purpose of a website is to reach new customers and keep current ones engaged. Therefore, customer-first should be at the top of your list for design features. After all, without your clients, your business won’t grow or succeed.

Customer-first has been a buzzword for a few years now. In a nutshell, it’s easy to imagine what customer-first design means. The needs of consumers come before anything else. However, the concept isn’t quite as simple in practice. A lot of nuances enter the equation.

Just what does it mean to have a customer-first web design? What are the must-haves to reach users on their level and keep their attention for the long haul?

Embracing quality customer experiences has driven loyalty for as long as anyone can remember. However, we now live in a time of uncertainty, and when people leave companies on a dime if they’re dissatisfied with any aspect. So you must hit the high notes on every song – your website is your purest online persona and must engage users and keep them entertained.

Whether you embrace causes that matter to your customers and share information on them or tweak your design to meet accessibility guidelines, many factors come into play with a customer-centric design.

In a recent report, researchers found that about 88% of company leaders feel customer engagement impacts revenue. You can’t control every variable, but you can ensure your website hits all the strong points for a customer-first web design that grabs them and keeps them on your page.

Here are our favorite tips to create a customer-first approach. You may already be doing some of these things. Pick and choose what makes the most sense for your business model. Even small changes can have a big impact.

1. Know Your Customers

Before creating a website centered around your customers’ needs, you must know who they are. What are the demographics of your typical clients? Survey them and find out what their needs and expectations are. How can you best help them?

You may also want to survey them about your website. What’s missing that might help them? Is there anything they love? What do they hate? The more you know, the better your design can match their expectations. Create buyer personas based on their preferences.

At the same time, buyers will sometimes say one thing but actually feel another way. No one is quite sure why people do this when being surveyed. One way around that issue is to do some A/B testing to see how they actually feel about various changes. Do they respond the way you thought? What other adjustments need to be made?

2. Find the Right Color Palette

Different industries trend toward various hues. For example, businesses in the banking industry trend toward blues and occasionally reds. Blue elicits trust from users and has a calming effect. On the other hand, the fashion industry might tap into brighter shades, such as lime green. Think about what colors people expect in your industry, and then find your color palette.

Each hue has its emotional impact. For example, red is a color of power and can elicit excitement in the viewer. Choose your shades accordingly to get the most emotional punch possible.

3. Accept Feedback

One of the best ways to improve your site over time to match the needs and preferences of your audience is by allowing feedback. Add reviews, place a feedback form in your footer, and even send out requests for feedback to your mailing list.

It’s also a good idea to find a mentor who has been successful at running a business. Ask them to look at your site and give you advice. You might also enlist the help of a marketing professional.

4. Stick With the Familiar

Have you heard of Jakob’s Law? The rule of thumb states that people prefer common design patterns they’re most familiar with. So when they see a pattern they know, such as a navigation bar layout, it boosts their mood and improves their memory of the site.

When making edits, don’t make significant changes. Instead, implement minor adjustments over time to give your followers a chance to acclimate to the shift.

5. Cut the Clutter

If you want users to feel wowed by your page and engage, you have to limit their choices. Add in too many options, and they may not know where to go first.

Start by choosing an objective for the page. Cut anything that doesn’t point the user toward the goal. Ideally, you’d have a little info, an image, and a call to action (CTA) button. However, this may vary, depending on where your buyer is in the sales funnel and how much information they need to decide to go from browser to customer.

6. Choose Mobile Friendliness

Recent reports indicate about 90% of people use mobile devices to go online at times. With phones gaining greater capabilities and 5G bringing faster speeds to communities, expect people to use their mobile devices even more frequently for internet browsing.

Making sure your site translates well on smaller screens makes sense for your company and for your customers. Be sure to test everything. Click through all links. Fill in forms. Ensure images and text auto-adjust to the correct size, so people don’t have to scroll endlessly.

7. Make Multiple Landing Pages

Like most businesses, you probably have several buyer personas as you segment your audience. Don’t just create a single home page and expect it to fulfill the purpose of every reader. Instead, create unique pages for each persona to best meet their needs.

Make sure each landing page speaks in the natural language patterns of your specific audience. Think about the unique needs of each group. How do their pain points differ? How can you best meet their needs?

8. Keep Important Info Above the Fold

People are busy. They work, have families, and might visit your site on the 15-minute break they get in the afternoon. Most consumers want the information they need to decide and don’t want to dilly-dally around with other things.

Place the essential headlines and info they need above the fold, so they see it first. Make it as readable as possible by using headings and subheadings. Add in a few bullet points. People also absorb information easier in video format, so add a video highlighting your product’s or service’s main benefits.

You should also place a CTA button above the fold if it makes sense for your overall design. Keep in mind people may have visited and already read some of the information. Some users return just to sign up and want to find the CTA quickly.

Step Into Your Customers’ Shoes

Look at your site through the eyes of your audience. What works well? What needs to be adjusted? Over time, you’ll develop a customer-first web design that speaks to those most likely to buy from you. Then, keep making changes and tweaking your site until it hits the perfect balance for your customers.

 

Featured image via Freepik.

Source

The post What Customer-First Web Design Looks Like first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

UX laws are an invaluable tool, providing guidelines for designers that ensure we don’t have to continually reinvent the wheel when crafting experiences for the web.

However, UX laws tend to be devised by scientists and psychologists — people who are more than comfortable with the exceptions and allowances of academic language. By the time they filter down to us in the trenches, the language has invariably been over-simplified, and the wisdom behind the idea diluted.

Today we’re going to look at seven well-known and commonly cited rules of UX design that too many designers get wrong.

1. Jakob’s Law

Jakob’s Law, named for the UX researcher Jakob Nielsen, states that users spend most of their time on other sites and as a result prefer sites that work the same way as the sites they already know.

Jakob’s Law has often been used to limit experimentation and encourage the adoption of common design patterns in the name of usability.

However, the word ‘prefer’ is hugely loaded. While it’s true that a user will more easily understand a familiar design pattern, they do not necessarily prefer familiar experiences.

It has been widely proved that new experiences boost our mood and that new experiences improve our memory. If your goal is a memorable site that leaves users with a positive impression, introducing novelty is a sound decision.

2. Goal Gradient Hypothesis

The Goal Gradient Hypothesis assumes that the closer users are to their goal, the more likely they are to complete it.

It’s an attractive theory, especially in e-commerce, where it is often used to justify simplifying the initial purchase process and postponing complexity to move users along the funnel — a typical example is leaving shipping charges until the final step.

However, anyone who has studied e-commerce analytics will know that cart abandonment is a huge issue. In North America, shopping cart abandonment is as high as 74%.

We don’t always know what the user’s goals are, and they may not match ours. It may be that users are treating your shopping cart as a bookmark feature, it may be that they have a last-minute change of heart, or they may be horrified by the shipping charges.

While providing a user with an indication of their progress is demonstrably helpful, artificially inflating their proximity to your preferred goal may actually hinder conversions.

3. Miller’s Law

Never in the whole of human history has any scientific statement been as misunderstood as Miller’s Law.

Miller’s Law states that an average person can only hold seven, plus or minus two (i.e., 5–9) items in their working memory. This has frequently been used to restrict UI navigation to no more than five items.

However, Miller’s Law does not apply to items being displayed. While it’s true that too many options can lead to choice paralysis, a human being is capable of considering more than nine different items.

Miller’s Law only applies to UI elements like carousels, which have been widely discredited for other reasons.

4. Aesthetic-Usability Effect

Edmund Burke once said, “Beauty is the promise of happiness.” That belief is central to the Aesthetic-Usability Effect, which posits that users expect aesthetically pleasing designs to be more usable.

Designers often use this as a justification for grey-on-grey text, slick animations, and minimal navigation.

Critical to understanding this is that just because users expect a design to be usable does not mean that it is or that they will find it so. Expectations can quickly be dashed, and disappointment often compounds negative experiences.

5. Peak-End Rule

The Peak-End Rule states that users judge an experience based on how they felt at the peak and the end, rather than an average of the experience.

Designers commonly use the Peak-End Rule to focus design resources on the primary goal of each experience (e.g. adding an item to a cart) and the closing experience (e.g. paying for the item).

However, while the Peak-End Law is perfectly valid, it cannot apply to open experiences like websites when it is impossible to identify a user’s starting or ending point.

Additionally, it is easy to see every interaction on a website as a peak and even easier to make assumptions as to which peak is most important. As such, while designing for peaks is attractive, it’s more important to design for exceptions.

6. Fitts’ Law

In the 1950s, Paul Fitts demonstrated that the distance to, and size of a target, affect the error rate of selecting that target. In other words, it’s harder to tap a small button and exponentially harder to tap a small button that is further away.

UX designers commonly apply this law when considering mobile breakpoints due to the relatively small viewport. However, mobile viewports tend not to be large enough for any distance to affect tap accuracy.

Fitts’ Law can be applied to desktop breakpoints, as the distances on a large monitor can be enough to have an impact. However, the majority of large viewports use a mouse, which allows for positional corrections before tapping.

Tappable targets should be large enough to be easily selected, spaced sufficiently, and tab-selection should be enabled. But distance has minimal impact on web design.

7. Occam’s Razor

No collection of UX laws would be complete without Occam’s Razor; unfortunately, this is another law that is commonly misapplied.

Occam’s Razor states that given any choice, the option with the least assumptions (note: not necessarily the simplest, as it is often misquoted) is the correct choice.

In an industry in which we have numerous options to test, measure, and analyze our user interfaces, you shouldn’t need to make assumptions. Even when we don’t need extensive UX testing, we can make decisions based on other designers’ findings.

Occam’s Razor is a classic design trap: the key to avoiding it is to recognize that it’s not your assumptions that matter, it’s the users’. As such, Occam’s Razor applies to a user’s experience, not a design process.

Source

The post 7 UX Laws You’Re Probably Getting Wrong first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

Designing for user experiences is what all designers do. UX is often thought of as the preserve of app or web designers; however, even a print designer laying out a magazine anticipates reader reaction to the scale of type, the placement of adverts, and the art direction of successive stories.

Because all designers design user experiences, the role of UX Designer has come to mean someone focused on creating a product or service utilizing research and testing to guide decision-making.

To research and test anything, you need metrics: a baseline and a target against which to measure. No one set of metrics is suitable for all projects, but because UX tends to be for financial profit, the Pirate Metrics Framework — Acquisition, Activation, Retention, Referral, Revenue — is a good starting place.

You might seek out very different metrics in some cases. For instance, a museum might measure the success of its education program based on how many students go on to study paleontology. However, those types of metrics are notoriously difficult to quantify. Excepting a few niche cases, successful UX increases user productivity, decreases errors, reduces the cost of support, and increases sales.

So if it’s as easy as counting dollars, why does UX go bad?

UX vs. Design Principles

To understand what UX is, you need to understand what UX is not.

One of the most straightforward design principles to understand is hierarchy: bigger is more important, i.e., a heading is visually stronger than a sub-heading, a sub-heading is visually stronger than the body text.

Design principles stem from one thing: human-centered design. At the most basic level, bigger is more important because the bigger a saber-toothed tiger appears, the more likely it intends to eat me.

The evolution of human beings is so slow that had a smartphone existed at the time, a neanderthal would have been able to tap a button with the same level of precision as me. Prehistoric man shares the same minimum button size as modern man: 48 x 48px. Design principles don’t change, don’t require research, and don’t need verifying with tests.

On the other hand, a neanderthal would not have understood a smartphone, let alone an app. You only need to step back by a single generation to find perfectly intelligent people baffled by a commonly employed design pattern.

Unlike design principles, user experience is a house built on sand. When the sand shifts, the walls crack. The bricks are still solid, but the rain gets in.

Because effective UX is temporary, so is the ROI.

Technology Breaks UX

Technology unfolds at a rapid pace. As technology develops, the user experience defined by that technology changes.

The classic example is the mobile revolution, but technological change does not necessarily mean hardware. One of the most significant shifts in UXD (User Experience Design) in my career has been the popularisation of AJAX — the process of using JavaScript to load new data without refreshing the page. This seamlessness has been around since the early 2000s, but it’s only in the last ten years, as the code to achieve it has simplified, that it’s been widely used.

Jakob’s Law states that users spend most of their time on other sites and, as a result, prefer your site to function like other sites by following familiar design patterns.

Even if your UX is rigorously tested and optimized, when other sites and services carry out their own research, they are testing against the background of younger technology, and the “other sites” Jakob Nielsen refers to begin to change. As a result, the UX of your site is gradually eroded.

The consequence of continual technological change is that user research is constantly invalidated. The UX of an app, site, or service begins to degrade as soon as it is created.

User-Experience Lifecycle

Human beings have two deep-seated motivations: survival and procreation. The most important, survival, depends on discovery — new food sources, new routes through dangerous territory, new ways to skin a mammoth. We are biologically programmed to seek out the new.

A typical user passes through three phases of a relationship with a site, app, or service: discovery > comfort > boredom. Churn, or drop-off, tends to occur in the discovery phase (if the comfort phase is too slow in developing) or the boredom phase. The sweet spot is the comfort phase. That’s the part of the business-customer relationship in which the customer requires minimal support and is least likely to drop off.

The most effective form of UX — meaning the one that satisfies most metrics — rapidly moves a user from discovery to comfort and then continually eases the user back to the start of the comfort phase without tipping back into discovery.

This can be achieved with numerous micro-discoveries, tiny chunks of new experience, from simple functionality tweaks to style revisions.

Summary

All UXD, regardless of the quality, level of investment, and skill of the practitioner, begins to degrade the moment it is created.

Design principles like simplicity are good indicators of successful UID (User Interface Design) and are timeless; comprehensive design systems, brand assets, and content offer good ROI.

The most effective UX is broadly familiar and continually refreshed in small ways, allowing users to enjoy the comfort of the familiar while also experiencing the excitement of discovery again and again.

 

Featured image uses photos by Wolfgang Hasselmann & Shainee Fernando.

Source

The post When UX Goes Bad (and How to Fix It) first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

In the video below, we take a closer look at the State Design Pattern in Java. This tutorial includes an introduction, real-time examples, class/sequence diagram, and implementation. Let’s get started!

Source de l’article sur DZONE

There’s not much buzz about design patterns these days. They appear to have joined the hall of fame of accepted wisdom, alongside the Silver Bullet, SOLID and DRY. Lately, I had the opportunity to share some thoughts on the importance of good old design patterns with Koen Aerts, CTO of Team Rockstars IT. Here’s the gist of that talk in a more digestible format.

Before I start, let me set some boundaries, as people can get doctrinaire about definitions. I refer to the good old bridge, builder, decorator, and factory patterns. Architectural patterns like MVC do not fall into the same category, much fewer paradigms like serverless and microservices (aka SOA the next generation).

Source de l’article sur DZONE