Saturday, September 7, 2024

Design patterns

 From @SumitM_X

You are planning to introduce breaking changes to a public-facing microservice API that is being used by multiple clients. How would you manage these changes to ensure existing clients are not disrupted?

The Strangler Fig pattern is an architectural pattern used in software development to incrementally migrate a legacy system to a new one. The name comes from the strangler fig plant, which grows around a host tree and eventually replaces it.

Here’s a brief overview of how it works:

  1. Incremental Replacement: Instead of replacing an entire legacy system at once, you gradually replace specific pieces of functionality with new applications and services.
  2. Façade: A façade intercepts requests going to the backend legacy system and routes them either to the legacy application or the new services. This allows the old and new systems to coexist during the transition.
  3. Gradual Migration: Over time, as more features are migrated to the new system, the legacy system is eventually “strangled” and can be safely decommissioned12.

This pattern helps minimize risks and spread the development effort over time, making it easier to manage complex migrations12.

Thursday, March 7, 2024

GIT : 


Error :  fatal: cannot create a directory at '': Filename too long


git config --global http.proxy http://proxy.****.com:80

git config --global core.longpaths true git clone *** URL***



Wednesday, November 6, 2019

How to increase CPU Performance ?

Run below commands & Sift+Delete

1. ccmcache
2. prefetch
3. %temp%

Download latest drive from laptop product & Install.

Thursday, July 16, 2015

javax.xml.bind.PropertyException:name: com.sun.xml.bind.xmlDeclaration value: false

javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlDeclaration value: false
at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:349)
at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:544)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.getErrorMsgXML(ErrorMessageService.java:65)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.sendGrieftoTVS(ErrorMessageService.java:27)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.main(ErrorMessageService.java:53)


The above error will be appears when we are using Java 1.6 and JAXB.
jm.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);

Please include following Jars in libs


jaxb-core.jar
jaxb-api.jar
jaxb-impl.jar

Thursday, November 29, 2012

In windows 7 : The specified DSN Contains an architecture mismatch between the Driver and Application

ODBC Driver setup

The following steps show how to access a 32-bit ODBC driver from a 64-bit application on a 64-bit Windows machine. The ODBC driver used is the Microsoft Access ODBC driver. The application used is the SQL Server Integration Services (SSIS) Import and Export Wizard.
  1. In the 32-bit ODBC Data Source Administrator, configure a System data source for the Access ODBC driver. To access the 32-bit ODBC Data Source Administrator, run the following command in the Windows Run dialog box:
    %windir%\syswow64\odbcad32.exe

Sunday, August 26, 2012

Java : Getting no days between dates in java

private static double durationInDays(Date dateFrom, Date dateTo) {


TimeZone tz = Calendar.getInstance().getTimeZone();

/*TimeZone ltz = TimeZone.getTimeZone(tz.getID());

System.out.println(tz.getID());*/

double timeTo = dateTo.getTime();

double timeFrom = dateFrom.getTime();

double duration = timeTo - timeFrom;

if (tz.inDaylightTime(dateFrom)) {

if (!tz.inDaylightTime(dateTo)) {

System.out.println("in daylight saving from: " + dateFrom);

System.out.println("not in daylight saving to: " + dateTo);

duration -= 60 * 60 * 1000;

}

} else {

if (tz.inDaylightTime(dateTo)) {

System.out.println("not in daylight saving from: " + dateFrom);

System.out.println("in daylight saving to: " + dateTo);

duration += 60 * 60 * 1000;

}

}

return duration / (24 * 60 * 60 * 1000);

}

Monday, February 6, 2012

Content Assist (Ctrl + Space) Is Not Working in Eclipse IDE / RAD in Windows 7

In Windows7 the content assist is not working in Eclipse IDE /RAD 7.0. I have Google the same information at not able find right solution.

At last I have changed content assist key to other key settings.


Preference ---> General ---> keys--->

Scheme: Default
Name: Content Assist
binding : Shift+spacebar ( Previous its CTRL +SPACEBAR )



Now short cut changed its working fine.